Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remotely inspect the data in my RedisCloud DBs?

Tags:

ruby

redis

heroku

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.

like image 497
BeachRunnerFred Avatar asked Dec 09 '22 06:12

BeachRunnerFred


1 Answers

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.

like image 98
Nobita Avatar answered Jan 01 '23 10:01

Nobita