Mercurial > zeropaste
view config/config_init.rb @ 446:86729239f2de
Update license wording and year
Based on original ISC license as currently used by OpenBSD.
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 25 Mar 2017 17:58:49 +0900 |
parents | a5eae5b07abf |
children |
line wrap: on
line source
$cfg = {} $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] $cfg[:newrelic] = ENV["ZP_NEWRELIC"] == 1 env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" config_local = File.expand_path("config_local_#{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, env] $cfg[:bundler_groups] << "standalone" if $cfg[:standalone] $cfg[:bundler_groups] << "newrelic" if $cfg[:newrelic] $cfg.freeze