Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.45k stars 862 forks source link

Connection using url string resorting to localhost #1214

Open notflip opened 5 years ago

notflip commented 5 years ago

I have the following in my config:

let queue; if (NODE_ENV === 'production') { queue = kue.createQueue({ redis: 'redis://username:password@host.redistogo.com:9379' }); } else { queue = kue.createQueue(); } Which results in the following error

Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379

My environment variables are correct, so we do get inside the if statement. Something seems wrong with the url string to connect to redis?