Issue
I want to install both In-Dyno and Heroku Key-Value Store (KVS) in Heroku CI. In-Dyno Heroku KVS is for tests in a single dyno and Heroku KVS 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 mini instance's URL. CI_QUEUE_URL
is added for the mini Heroku KVS 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 Key-Value Store 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.