dwyl / learn-phoenix-framework

:fire: Phoenix is the web framework without compromise on speed, reliability or maintainability! Don't settle for less. :rocket:
648 stars 45 forks source link

Add documenation on how to use Heroku Review App #130

Closed SimonLab closed 2 years ago

SimonLab commented 4 years ago

image

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.

SimonLab commented 4 years ago

review_app_log

SimonLab commented 4 years ago

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

SimonLab commented 2 years ago

Using Fly.io instead of Heroku. Closing as not currently relevant.