annotate config/default_config.rb @ 368:7b58d38c9b6a

Completely remove memcache.
author edogawaconan <me@myconan.net>
date Mon, 23 Mar 2015 19:12:14 +0900
parents 56382cb104dd
children 68eb23b52864
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
330
96631607785f Even more coding style.
edogawaconan <me@myconan.net>
parents: 245
diff changeset
1 CONFIG["standalone"] = true if CONFIG["standalone"].nil?
96631607785f Even more coding style.
edogawaconan <me@myconan.net>
parents: 245
diff changeset
2 CONFIG["newrelic"] = false if CONFIG["newrelic"].nil?
96631607785f Even more coding style.
edogawaconan <me@myconan.net>
parents: 245
diff changeset
3 CONFIG["bundler_groups"] ||= [:default, Rails.env]
96631607785f Even more coding style.
edogawaconan <me@myconan.net>
parents: 245
diff changeset
4 CONFIG["bundler_groups"] << "standalone" if CONFIG["standalone"]
96631607785f Even more coding style.
edogawaconan <me@myconan.net>
parents: 245
diff changeset
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"]