diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-07 23:20:52 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-07 23:20:52 +0100 |
commit | dbe00a4156952cf0288828435ccda6bbba5d7a6f (patch) | |
tree | cf2bbd8184db9b47db1aa62cb4b93c49b7aa90a7 /config/environments/production.rb | |
parent | 0400734df7a38f4b100d601eb8cffd7cd9689c76 (diff) |
Improved configuration from ENV, cleaned up timeline filter methods
to be more readable, add extra logging to process feed service
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index f2071f7a239..27238e3d881 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,8 +46,8 @@ Rails.application.configure do # Use a different cache store in production. config.cache_store = :redis_store, { - host: ENV['REDIS_HOST'] || 'localhost', - port: ENV['REDIS_PORT'] || 6379, + host: ENV.fetch('REDIS_HOST') { 'localhost' }, + port: ENV.fetch('REDIS_PORT') { 6379 }, db: 0, namespace: 'cache' } |