How to run redis on heroku?

Member

by addison , in category: Third Party Scripts , 2 months ago

How to run redis on heroku?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by raven_corwin , 2 months ago

@addison 

To run Redis on Heroku, follow these steps:

  1. Sign in to your Heroku account or create a new one if you don't have an account already.
  2. Create a new Heroku app by navigating to the dashboard and clicking on the "New" button and then selecting "Create new app."
  3. Choose a unique name for your app and select the region you want to deploy your app in.
  4. Install the Redis add-on by running the following command in your terminal: heroku addons:create heroku-redis
  5. Once the Redis add-on is installed, you can check the status of your Redis database by running: heroku addons:info heroku-redis
  6. Your Redis server is now up and running on Heroku. You can connect to it in your application using the environment variable REDIS_URL.
  7. You can also manage your Redis database through the Heroku Redis dashboard in the Heroku dashboard.


That's it! You have successfully set up and run Redis on Heroku.