Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@
# Set to :debug to see everything in the log
config.log_level = :warn

# Use a different cache store in production.
config.cache_store = [:mem_cache_store] + YAML.load_file("config/memcache.yml")["servers"]
# Use memcached for cache store in production, whilst still allowing credentials:edit of production on a dev system
config.cache_store = [:mem_cache_store] + if File.size?("config/memcache.yml")
YAML.load_file("config/memcache.yml")["servers"]
else
['127.0.0.1']
end

# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
Expand Down
Loading