This utility is no longer required and is unsupported as its functionality has been built directly into the Heroku app-setups API.
This is a utility that will wait on Heroku Postgres and Redis to become available after provisioning. The utility will attempt to connect either addon for up to five minutes before failing. To determine whether Heroku Postgres has become available, it attempts to connect to DATABASE_URL
. Similarly for Heroku Redis, it attempts to connect to REDIS_URL
.
For instructions on how to use with review apps, head over to heroku/heroku-buildpack-addon-wait.
Run
bin/addon-wait
The utility will exit with code 0
for success, 1
for failure.