From 1a54781d1d27b18dc3880d57c98e61645af7112d Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Thu, 7 Dec 2023 16:34:39 +0000 Subject: [PATCH] Use REDIS_URL for redis config as REDIS_HOST was incorrectly setup --- config/redis.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config/redis.yml b/config/redis.yml index a7d85224..45944c17 100644 --- a/config/redis.yml +++ b/config/redis.yml @@ -15,15 +15,12 @@ test: integration: <<: *default - url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + url: '<%= ENV["REDIS_URL"] %>' staging: <<: *default - url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri")%>' + url: '<%= ENV["REDIS_URL"] %>' production: <<: *default - url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + url: '<%= ENV["REDIS_URL"] %>'