I am quite new to redis. This rails application has a redis.rb file in config/initializers
uri = URI.parse(ENV["REDIS_URL"])
$redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
The redis url is on heroku config.
I can't just replace REDIS_URL
with the REDIS_URL
from heroku config.
I am getting a URI parse error
bad URI(is not URI?): (URI::InvalidURIError)
my question is where should I place the redis url ? where is it searching the env variable from?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…