Pull requests in the GitHub Repository will automatically have a review app created in Heroku once CI has passed. This app can be used to test and share the behaviour of the pull request, and is particularly useful for acceptance of a new feature or change.
The review apps are configured in app.json
, except for secret environment
variables which are configured in the Heroku admin interface. Broadly, they are
configured as follows:
- In-dyno Postgres databases are used to overcome permissions errors when loading fixtures.
- The
nodejs
buildpack is explicitly run first so dependencies for the asset pipeline are ready. - The first time a review app is deployed it will have the database initialised and the test fixtures loaded to give example data.
The test
configuration is not currently used in Heroku.
As part of each app's
release phase database
migrations are run as defined in the postdeploy
option in the Procfile
.