From cf1518745ab2fce5fc5165a9f0c11557e7583096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ig=C3=B3n?= <=> Date: Mon, 26 Feb 2024 16:22:45 +0100 Subject: [PATCH 1/2] change cache store to redis_cache_store --- config/environments/production.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 77011f2..0c3a28c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,6 +58,7 @@ # Use a different cache store in production. # config.cache_store = :mem_cache_store + config.cache_store = :redis_cache_store, { url: ENV["REDIS_URL"] } # Use a real queuing backend for Active Job (and separate queues per environment). config.active_job.queue_adapter = :sidekiq From 80c23b3c3a0e6bfb671c08f9baf85ad38de68fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ig=C3=B3n?= <=> Date: Mon, 26 Feb 2024 16:25:06 +0100 Subject: [PATCH 2/2] fix rubocop --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 0c3a28c..a11ac1c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -58,7 +58,7 @@ # Use a different cache store in production. # config.cache_store = :mem_cache_store - config.cache_store = :redis_cache_store, { url: ENV["REDIS_URL"] } + config.cache_store = :redis_cache_store, { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") } # Use a real queuing backend for Active Job (and separate queues per environment). config.active_job.queue_adapter = :sidekiq