view config/default_config.rb @ 431:68eb23b52864

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 03:56:07 +0900
parents 56382cb104dd
children
line wrap: on
line source

CONFIG["standalone"] = true if CONFIG["standalone"].nil?
CONFIG["newrelic"] = false if CONFIG["newrelic"].nil?
CONFIG["log_to_stdout"] = true if CONFIG["log_to_stdout"].nil?
CONFIG["bundler_groups"] ||= [:default, Rails.env]
CONFIG["bundler_groups"] << "standalone" if CONFIG["standalone"]
CONFIG["bundler_groups"] << "newrelic" if CONFIG["newrelic"]

CONFIG["secret_key"] ||= ENV["ZP_SECRET_KEY"] if ENV["ZP_SECRET_KEY"]
CONFIG["newrelic"] = (ENV["ZP_NEWRELIC"] == 1) if ENV["ZP_NEWRELIC"]