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?
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 errorMy environment variables are correct, so we do get inside the if statement. Something seems wrong with the url string to connect to redis?