ruby on rails 4 - Heroku not locating redis server -


still having trouble connecting redis on heroku. works fine locally.

i installed 'redis' gem , located redistogo_url within heroku website. added production env variable heroku.

when try run carrierwave backgrounder process depends on redis , sidekiq, keep getting error below.

redis.rb

uri = uri.parse(env["redistogo_url"]) redis = redis.new(host: uri.host, port: uri.port, password: uri.password) 

in config file

if rails.env.development?   env['redistogo_url'] = 'redis:://@localhost:6379' else   env["redistogo_url"] = 'redis://redistogo:my_hash_key@greeneye.redistogo.com:9286/' end 

error

2015-03-21t04:44:47.560613+00:00 heroku[router]: at=info method=post path="/photos" host=www.luminoto.com request_id=92ad0e79-45c4-413d-8dc6-b3fdfe1754b8 fwd="98.222.43.13" dyno=web.1 connect=1ms service=1396ms status=302 bytes=1609 2015-03-21t04:44:47.560695+00:00 app[web.1]: error connecting redis on 127.0.0.1:6379 (errno::econnrefused) 2015-03-21t04:44:47.560721+00:00 app[web.1]: error connecting redis on 127.0.0.1:6379 (errno::econnrefused)


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -