Mercurial > zeropaste
annotate config/config_init.rb @ 498:300bac944674
Remove newrelic
To be replaced with sentry (maybe).
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:31:14 +0900 |
parents | a5eae5b07abf |
children | d2ef59c9a4b4 |
rev | line source |
---|---|
437 | 1 $cfg = {} |
2 $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] | |
3 | |
438
a5eae5b07abf
Prepare for removing custom database.yml
nanaya <me@myconan.net>
parents:
437
diff
changeset
|
4 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" |
a5eae5b07abf
Prepare for removing custom database.yml
nanaya <me@myconan.net>
parents:
437
diff
changeset
|
5 config_local = File.expand_path("config_local_#{env}.rb", __dir__) |
437 | 6 |
7 require config_local if File.exist? config_local | |
8 | |
9 $cfg[:standalone] = true if $cfg[:standalone].nil? | |
10 $cfg[:log_to_stdout] = true if $cfg[:log_to_stdout].nil? | |
11 | |
438
a5eae5b07abf
Prepare for removing custom database.yml
nanaya <me@myconan.net>
parents:
437
diff
changeset
|
12 $cfg[:bundler_groups] ||= [:default, env] |
437 | 13 $cfg[:bundler_groups] << "standalone" if $cfg[:standalone] |
14 | |
15 $cfg.freeze |