Mercurial > zeropaste
annotate config/default_config.rb @ 362:cbf116933259
Update to rails 4.2.
author | edogawaconan <me@myconan.net> |
---|---|
date | Sat, 20 Dec 2014 17:57:34 +0900 |
parents | 56382cb104dd |
children | 68eb23b52864 |
rev | line source |
---|---|
330 | 1 CONFIG["standalone"] = true if CONFIG["standalone"].nil? |
2 CONFIG["newrelic"] = false if CONFIG["newrelic"].nil? | |
3 CONFIG["bundler_groups"] ||= [:default, Rails.env] | |
4 CONFIG["bundler_groups"] << "standalone" if CONFIG["standalone"] | |
5 CONFIG["bundler_groups"] << "newrelic" if CONFIG["newrelic"] | |
355
56382cb104dd
Add support for environment variable-based deployment.
edogawaconan <me@myconan.net>
parents:
330
diff
changeset
|
6 |
56382cb104dd
Add support for environment variable-based deployment.
edogawaconan <me@myconan.net>
parents:
330
diff
changeset
|
7 CONFIG["secret_key"] ||= ENV["ZP_SECRET_KEY"] if ENV["ZP_SECRET_KEY"] |
56382cb104dd
Add support for environment variable-based deployment.
edogawaconan <me@myconan.net>
parents:
330
diff
changeset
|
8 CONFIG["newrelic"] = (ENV["ZP_NEWRELIC"] == 1) if ENV["ZP_NEWRELIC"] |