diff --git a/config/redis.yml b/config/redis.yml index 83062b92..a7d85224 100644 --- a/config/redis.yml +++ b/config/redis.yml @@ -15,15 +15,15 @@ test: integration: <<: *default - url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") + url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") .dig("redis", 0, "credentials", "uri") %>' staging: <<: *default - url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") - .dig("redis", 0, "credentials", "uri") %>' + url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") + .dig("redis", 0, "credentials", "uri")%>' production: <<: *default - url: '<%= JSON.parse(ENV["VCAP_SERVICES"] || "{}") + url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}") .dig("redis", 0, "credentials", "uri") %>'