I'm using Heroku to host a simple Ruby on Rails test app to learn how to use Redis. I'm using RedisCloud as my Redis servis provider. Locally, I can inspect my Redis DBs using the Redis CLI, but how can I inspect the data in the RedisCloud DBs that my Heroku app is using?
RedisCloud provides a dashboard that shows stats, but not the actual data. Also, I've tried using the Redis Desktop Manager software, but it has too many bugs to allow me to remotely connect to my RedisCloud DBs.
Step by step:
1 - Check your Heroku config, in order to find out the REDIS URL.
heroku config
You should see an entrance that look like this:
REDISCLOUD_URL: redis://rediscloud:foobarfoobarfoobar@a-redis-address:18888
2 - Connect to your remote Redis DB using redis-cli
:
redis-cli -h a-redis-address -p 18888 -a foobarfoobarfoobar
You should be able to query your Redis DB now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With