Mercurial > zeropaste
view config/default_config.rb @ 355:56382cb104dd
Add support for environment variable-based deployment.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 04 Aug 2014 17:05:16 +0900 |
parents | 96631607785f |
children | 68eb23b52864 |
line wrap: on
line source
CONFIG["standalone"] = true if CONFIG["standalone"].nil? CONFIG["newrelic"] = false if CONFIG["newrelic"].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"]