Closed SimonLab closed 2 years ago
Create a new pipeline:
connect repository to pipeline
enable review app
when PR created, review is created:
To be able to use staging and production applications we stilll need to create these two apps "as normal" with staging deploying automatically when the master branch is updated. However the production app will be updated when the staging is "promoted" to production via the pipeline.
It took me a bit of time/tests to see that review apps don't automatically become staging when merged and staging application doesn't create a production application when promoted and instead you have to manually create staging and production. The buildpacks, environment variables and addons needs to also be added on the settins page of the applications as the app.json
file configuration seems to be used only for review apps
I'm going to add this process pipeline in the documentation
Using Fly.io instead of Heroku. Closing as not currently relevant.
Heroku review apps and pipelines can be used to preview and tests different version of a Phoenix application. For example when a new pull request is created Heroku can automatically create an application linked to this PR which let reviewers test the new features.