Mercurial > zeropaste
annotate config/config_init.rb @ 506:b5c6fd96100b default tip
Readd the field error proc config
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 16 Dec 2024 01:46:09 +0900 |
parents | 7236c8864ad2 |
children |
rev | line source |
---|---|
437 | 1 $cfg = {} |
505
7236c8864ad2
Remove ZP_ prefix from environment variable names
nanaya <me@nanaya.net>
parents:
503
diff
changeset
|
2 $cfg[:secret_key] = ENV["SECRET_KEY"] |
437 | 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.freeze |