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

Access redis database on heroku in terminal #57

Open
heron2014 opened this issue Jan 13, 2016 · 1 comment
Open

Access redis database on heroku in terminal #57

heron2014 opened this issue Jan 13, 2016 · 1 comment
Labels

Comments

@heron2014
Copy link
Member

check your REDISCLOUD_URL on heroku in settings:

should look like this :

redis://rediscloud:password@pub-redis-16596.eu-west-1-1.2.ec2.something.com:99999

on your terminal:

redis-cli -h pub-redis-16596.eu-west-1-1.2.ec2.something.com -p 99999 -a password

that's it

@heron2014
Copy link
Member Author

Go to heroku, settings, reveal env - copy REDISCLOUD_URL or REDIS_URL,

which will look something like this :
redis:/ /h:hadffsdkjry34857348ajdgh374 @ bb2-33-555-343-454.eu-west-1.compute.amazonaws.com : 0000

First part is -a (password), second part is -h (host), third part is -p (port)
redis-cli -h bb2-33-555-343-454.eu-west-1.compute.amazonaws.com -p 0000 -a hadffsdkjry34857348ajdgh374

You should be able to access redis.

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

No branches or pull requests

1 participant