2013-02-12 10:18:59 -06:00
|
|
|
defaults: &defaults
|
|
|
|
host: localhost
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
cache_db: 2
|
|
|
|
|
|
|
|
development:
|
|
|
|
<<: *defaults
|
|
|
|
|
2013-03-10 19:21:56 -05:00
|
|
|
profile:
|
|
|
|
<<: *defaults
|
|
|
|
|
2013-02-12 10:18:59 -06:00
|
|
|
test:
|
2013-03-10 07:51:49 -05:00
|
|
|
<<: *defaults
|
2013-02-12 10:18:59 -06:00
|
|
|
db: 1
|
|
|
|
|
|
|
|
staging:
|
|
|
|
<<: *defaults
|
|
|
|
|
|
|
|
production:
|
|
|
|
<<: *defaults
|
2013-03-10 07:51:49 -05:00
|
|
|
|
|
|
|
# Example for using environment variables
|
|
|
|
#
|
|
|
|
# production:
|
|
|
|
# uri: <%= uri = URI.parse(ENV['OPENREDIS_URL']) if ENV['OPENREDIS_URL'] %>
|
|
|
|
# host: <%= uri.host if uri %>
|
|
|
|
# port: <%= uri.port if uri %>
|
|
|
|
# password: <%= uri.password if uri %>
|
|
|
|
# db: 0
|
|
|
|
# cache_db: 2
|