Search code examples
herokuredisheroku-ciheroku-redis

REDIS_URL environment variable missing with heroku-redis:in-dyno


I'm currently using Heroku CI, with the standard "heroku-redis" and it works just fine, but I'm now trying to switch to using "heroku-redis:in-dyno".

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

However, my builds are now failing.

It appears from the errors in the build that when trying to initialize my application and parse the REDIS_URL environment variable, it's blank, rather than the expected URL.

This URL is set as expected with normal "heroku-redis", just not the "heroku-redis:in-dyno" version for some reason.

Am I missing something?


Solution

  • Heroku development team found that this was a bug in the heroku-buildpack-ci-redis, which has since been patched. https://github.com/heroku/heroku-buildpack-ci-redis/commit/71fef260aae271bd77480ae15a6aaaa304c906ea

    Hats off to the Heroku team, they were great to work with on spotting and fixing this.