diff 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 diff
--- a/config/default_config.rb	Thu Jul 03 15:22:24 2014 +0900
+++ b/config/default_config.rb	Mon Aug 04 17:05:16 2014 +0900
@@ -3,3 +3,6 @@
 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"]