development:
  host: 127.0.0.1 %>
  port: 6379 %>
test:
  host: 127.0.0.1
  port: 6379
production:
  host: <%= ENV["REDIS_HOST"] %>
  port: <%= ENV["REDIS_PORT"] %>

development:
  host: <%= ENV["REDIS_HOST"] || '127.0.0.1' %>
  port: <%= ENV["REDIS_PORT"] || 6379 %>
test:
  host: <%= ENV["REDIS_HOST"] || '127.0.0.1' %>
  port: <%= ENV["REDIS_PORT"] || 6379 %>
production:
  host: <%= ENV["REDIS_HOST"] %>
  port: <%= ENV["REDIS_PORT"] %>

Support environment variables for Redis in all environments
Support environment variables for Redis in all environments

This makes the Redis settings more easily configurable for dev and
test, while making the behaviour more consistent.
