I'm trying to add Resque workers to a Heroku app. The app runs perfectly in my development environment, but when I deploy to Heroku and try to queue a job, I get the following:
Redis::InheritedError Error
Tried to use a connection from a child process without reconnecting. You need to reconnect to Redis after forking.
I've added RedisToGo to the app, and I've doubled-checked that the Redis URL is being given to Resque. That is, /config/initializers/redis.rb
looks like this:
uri = URI.parse(ENV["REDISTOGO_URL"] || "redis://localhost:6379/")
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
Resque.redis = REDIS
Does anyone know what I might be doing wrong?