mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 16:48:29 +08:00

Change heroku docs and tweak redis.yml.sample var name to accmodate setting redis provider url via configs.
23 lines
348 B
Plaintext
23 lines
348 B
Plaintext
defaults: &defaults
|
|
uri: <%= uri = URI.parse(ENV['REDIS_PROVIDER_URL'] || "redis://localhost:6379") %>
|
|
host: <%= uri.host %>
|
|
port: <%= uri.port %>
|
|
password: <%= uri.password %>
|
|
db: 0
|
|
cache_db: 2
|
|
|
|
development:
|
|
<<: *defaults
|
|
|
|
profile:
|
|
<<: *defaults
|
|
|
|
test:
|
|
<<: *defaults
|
|
db: 1
|
|
|
|
staging:
|
|
<<: *defaults
|
|
|
|
production:
|
|
<<: *defaults |