How to install both an In-Dyno and a Heroku Redis in Heroku CI?

Issue

I want to install both In-Dyno and Heroku Redis in Heroku CI. In-Dyno Redis is for tests in a single dyno and Heroku Redis is for queuing for parallel tests.

When I write an app.json below, it appears that only Heroku Redis is installed as REDIS_URL, but an In-Dyno Redis isn't installed.

{
  "environments": {
    "test": {
      "addons": ["heroku-redis:mini", "heroku-redis:in-dyno"]
    }
  }
}

Resolution

You can use as option to name the hobby-dev Redis URL. CI_QUEUE_URL is added for the hobby-mini Redis in the following app.json.

"environments": {
  "test": {
    "addons":[
      { "plan": "heroku-redis:mini", "as": "CI_QUEUE" },
      { "plan": "heroku-redis:in-dyno" }
    ]
  }

WARNING: Starting November 28, 2022, free Heroku Dynos, free Heroku Postgres, and free Heroku Data for Redis plans will no longer be available. If you have apps using any of these resources, you must upgrade to paid plans by this date to ensure your apps continue to run and retain your data. Heroku Connect and Heroku Scheduler free plans and other third-party add-ons are not affected. Eligible students can apply for platform credits through our new Heroku for GitHub Students program. See our blog and FAQ for more info.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support