about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-07 23:20:52 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-07 23:20:52 +0100
commitdbe00a4156952cf0288828435ccda6bbba5d7a6f (patch)
treecf2bbd8184db9b47db1aa62cb4b93c49b7aa90a7 /config/environments
parent0400734df7a38f4b100d601eb8cffd7cd9689c76 (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')
-rw-r--r--config/environments/production.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index f2071f7a2..27238e3d8 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'
   }