annotate config/config_init.rb @ 503:2392b86711a1

Remove standalone option I reverted the bundler require option during upgrade but the custom group isn't relevant anymore anyway.
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:15:49 +0900
parents 507b7f8e8b3b
children 7236c8864ad2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
437
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
1 $cfg = {}
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
2 $cfg[:secret_key] = ENV["ZP_SECRET_KEY"]
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
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
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
6
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
7 require config_local if File.exist? config_local
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
8
d31fe32da7a0 Finish updating to rails 5
nanaya <me@myconan.net>
parents: 147
diff changeset
9 $cfg.freeze