metamaps--metamaps/config/initializers/redis.rb
2014-03-03 01:22:08 -08:00

6 lines
No EOL
248 B
Ruby

#if Rails.env.development?
$redis = Redis.new(:host => 'localhost', :port=> 6379)
#elsif Rails.env.production?
# uri = URI.parse(ENV["REDISTOGO_URL"])
# $redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
#end