Mercurial > zeropaste
diff config/config_init.rb @ 437:d31fe32da7a0
Finish updating to rails 5
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 02 Jul 2016 17:04:25 +0900 |
parents | config/init_config.rb@812711965af1 |
children | a5eae5b07abf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/config_init.rb Sat Jul 02 17:04:25 2016 +0900 @@ -0,0 +1,17 @@ +$cfg = {} +$cfg[:secret_key] = ENV["ZP_SECRET_KEY"] +$cfg[:newrelic] = ENV["ZP_NEWRELIC"] == 1 + +config_local = File.expand_path("config_local_#{Rails.env}.rb", __dir__) + +require config_local if File.exist? config_local + +$cfg[:standalone] = true if $cfg[:standalone].nil? +$cfg[:newrelic] = false if $cfg[:newrelic].nil? +$cfg[:log_to_stdout] = true if $cfg[:log_to_stdout].nil? + +$cfg[:bundler_groups] ||= [:default, Rails.env] +$cfg[:bundler_groups] << "standalone" if $cfg[:standalone] +$cfg[:bundler_groups] << "newrelic" if $cfg[:newrelic] + +$cfg.freeze