Skip to content

Commit 0b8ee0f

Browse files
committed
README
1 parent 348dfe9 commit 0b8ee0f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ development:
3636
port: <%= Config.port(:redis, 6379) %>
3737
url: <%= Config.port(:redis, 6379, 'redis://localhost:%s/') %>
3838
```
39+
40+
Allowe ENV overrides with:
41+
42+
```yaml
43+
# ./config/redis.yml
44+
---
45+
development:
46+
host: <%= ENV.fetch('REDIS_HOST', 'localhost') %>
47+
port: <%= ENV.fetch('REDIS_PORT') { Config.port(:redis, 6379) } %>
48+
url: <%= ENV.fetch('REDIS_URL') { Config.port(:redis, 6379, 'redis://localhost:%s/') } %>
49+
```

0 commit comments

Comments
 (0)