Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Update redis.yml for the k8s cluster
Browse files Browse the repository at this point in the history
VCAP_SERVICES is specific to PaaS deployment, on the k8s cluster the REDIS_HOST is set as an env var.
  • Loading branch information
kentsanggds committed Nov 15, 2023
1 parent 44e9667 commit 2c57980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] %>'

0 comments on commit 2c57980

Please sign in to comment.