Mercurial > zeropaste
comparison config/config_init.rb @ 505:7236c8864ad2
Remove ZP_ prefix from environment variable names
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 16 Dec 2024 01:42:54 +0900 |
parents | 2392b86711a1 |
children |
comparison
equal
deleted
inserted
replaced
504:aaf58c17694b | 505:7236c8864ad2 |
---|---|
1 $cfg = {} | 1 $cfg = {} |
2 $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] | 2 $cfg[:secret_key] = ENV["SECRET_KEY"] |
3 | 3 |
4 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" | 4 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" |
5 config_local = File.expand_path("config_local_#{env}.rb", __dir__) | 5 config_local = File.expand_path("config_local_#{env}.rb", __dir__) |
6 | 6 |
7 require config_local if File.exist? config_local | 7 require config_local if File.exist? config_local |