From e160711f55af73c4a10dfb0ad0ff39b491908856 Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Wed, 15 Nov 2023 14:18:02 +0000 Subject: [PATCH] Update redis.yml for the k8s cluster VCAP_SERVICES is specific to PaaS deployment, on the k8s cluster the REDIS_HOST is set as an env var. --- config/redis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/redis.yml b/config/redis.yml index 83062b92..d68ff608 100644 --- a/config/redis.yml +++ b/config/redis.yml @@ -16,14 +16,14 @@ test: integration: <<: *default url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + .dig("redis", 0, "credentials", "uri") || ENV["REDIS_HOST"] %>' staging: <<: *default url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + .dig("redis", 0, "credentials", "uri") || ENV["REDIS_HOST"] %>' production: <<: *default url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + .dig("redis", 0, "credentials", "uri") || ENV["REDIS_HOST"] %>'