Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection using url string resorting to localhost #1214

Open
notflip opened this issue Jan 8, 2019 · 0 comments
Open

Connection using url string resorting to localhost #1214

notflip opened this issue Jan 8, 2019 · 0 comments

Comments

@notflip
Copy link

notflip commented Jan 8, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant