Skip to content

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 21, 2023
1 parent 19e18e6 commit e160711
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 e160711

Please sign in to comment.