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

Commit f345b17

Browse files
authored
Merge pull request #1224 from alphagov/update-redis-config
Use REDIS_URL for redis config
2 parents a194173 + 1a54781 commit f345b17

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

config/redis.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ test:
1515

1616
integration:
1717
<<: *default
18-
url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}")
19-
.dig("redis", 0, "credentials", "uri") %>'
18+
url: '<%= ENV["REDIS_URL"] %>'
2019

2120
staging:
2221
<<: *default
23-
url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}")
24-
.dig("redis", 0, "credentials", "uri")%>'
22+
url: '<%= ENV["REDIS_URL"] %>'
2523

2624
production:
2725
<<: *default
28-
url: '<%= ENV["REDIS_HOST"] || JSON.parse(ENV["VCAP_SERVICES"] || "{}")
29-
.dig("redis", 0, "credentials", "uri") %>'
26+
url: '<%= ENV["REDIS_URL"] %>'

0 commit comments

Comments
 (0)