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