Permalink
Browse files

redis cache: host env var in application.rb

  • Loading branch information...
1 parent 1241285 commit d949bccfa1c23eb13a302c5f129f72ac36fe7995 @benilovj benilovj committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/application.rb
View
@@ -49,7 +49,7 @@ class Application < Rails::Application
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true
- config.cache_store = :redis_store
+ config.cache_store = :redis_store, "redis://#{ENV['REDIS_HOST'] || 'localhost:6379'}"
# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,

0 comments on commit d949bcc

Please sign in to comment.