There are quite a few questions like this, but no one seems to solve my problem. Here's the grub:
Rails 4, a Ruby 2.0.0 application using Resque and Redis.
My redis initializer:
#config/initializers/redis.rb if ENV["REDISCLOUD_URL"] $redis = Redis.new(:url => ENV["REDISCLOUD_URL"]) end
The error is this, as reported by heroku logs:
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
My procfile:
web: bundle exec rackup config.ru -p $PORT resque: env TERM_CHILD=1 QUEUES=* bundle exec rake resque:work
If this helps, my REDISCLOUD_URL :
redis://rediscloud: somestuff@someotherstuff :17695
This is not in http:// . This is problem?
I tried all the other entries on these issues and nothing works. Any tips? I already described the RedisCloud Heroku page here: https://devcenter.heroku.com/articles/rediscloud
source share