Issue
I want to install In-Dyno Redis and Heroku Redis in Heroku CI. In-Dyno Redis is for tests in a single dyno and In-Dyno Redis is for queuing for parallel tests.
When I write an app.json below, it appears that only In-dyno Redis is installed as REDIS_URL.
{
"environments": {
"test": {
"addons": ["heroku-redis:hobby-dev", "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-dev Redis in the following app.json.
"environments": {
"test": {
"addons":[
{ "plan": "heroku-redis:hobby-dev", "as": "CI_QUEUE" },
{ "plan": "heroku-redis:in-dyno" }
]
}