Skip to content

Commit

Permalink
Use REDIS_URL for redis config
Browse files Browse the repository at this point in the history
as REDIS_HOST was incorrectly setup
  • Loading branch information
kentsanggds committed Dec 7, 2023
1 parent cc39747 commit 1a54781
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions config/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] %>'

0 comments on commit 1a54781

Please sign in to comment.