ruby on rails - Want to use Redis on Heroku (Redis::CannotConnectError ( Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)) ) -


i want use redis on heroku got error redis::cannotconnecterror (error connecting redis on 127.0.0.1:6379 (econnrefused)) .

i checked these , didn't helped. redis connection 127.0.0.1:6379 failed - connect econnrefused, deploying redis heroku unable connect, how redis start on heroku? .

i use ruby 2.0.0p247 , rails4. i'm using puma.

i use redistogo(nano) and, in /config/initializers/redis.rb write this.

uri = uri.parse(env["redistogo_url"] || "redis://localhost:6379/" ) $redis = redis.new(:host => uri.host, :port => uri.port, :password => uri.password) 

i checked "redistogo_url" same url can see when $ heroku config .

i did redis restart on heroku gui, doesn't work.

please tell me need do. thank help.

you're trying connect own computer (note 127.0.0.1 == localhost). i'm guessing that's not redis server you're looking :)

looks env["redistogo_url"] isn't set.


also, side note, redis go if haven't already, people use redis server in conjunction heroku.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -