Fork your app
heroku fork --from myapp --to staging-myapp
- Create a heroku pipeline for your app
heroku pipelines:create -a myapp
- Add the staging app to that pipeline
heroku pipelines:add -a myapp-staging myapp
- Change the heroku remote to be that of your staging app
heroku git:remote -a fedry-staging
From now on we'll be pushing code to staging so your workflow (may be) is:
git push heroku master
.. verify app behavior (
heroku pipelines:promoteto send staging -> production without the need for recompile.
You will now be much less likely to put your "production" app in a broken state.
Note that from now on, your
myapp-staging is the target for most of your heroku commands, so if you want to view your production logs - for example - you'll want
heroku logs -a myapp.