Skip to content

Commit

Permalink
f try different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Nov 21, 2023
1 parent e160711 commit bd2e510
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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") %>'

0 comments on commit bd2e510

Please sign in to comment.