Mercurial > zeropaste
annotate config/default_config.rb @ 433:b445318de858
Inheriting ApplicationRecord
author | nanaya <me@myconan.net> |
---|---|
date | Fri, 13 May 2016 03:59:50 +0900 |
parents | 68eb23b52864 |
children |
rev | line source |
---|---|
330 | 1 CONFIG["standalone"] = true if CONFIG["standalone"].nil? |
2 CONFIG["newrelic"] = false if CONFIG["newrelic"].nil? | |
431 | 3 CONFIG["log_to_stdout"] = true if CONFIG["log_to_stdout"].nil? |
330 | 4 CONFIG["bundler_groups"] ||= [:default, Rails.env] |
5 CONFIG["bundler_groups"] << "standalone" if CONFIG["standalone"] | |
6 CONFIG["bundler_groups"] << "newrelic" if CONFIG["newrelic"] | |
355
56382cb104dd
Add support for environment variable-based deployment.
edogawaconan <me@myconan.net>
parents:
330
diff
changeset
|
7 |
56382cb104dd
Add support for environment variable-based deployment.
edogawaconan <me@myconan.net>
parents:
330
diff
changeset
|
8 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
|
9 CONFIG["newrelic"] = (ENV["ZP_NEWRELIC"] == 1) if ENV["ZP_NEWRELIC"] |