Set up remotes for staging and production apps
Official docs found here: https://devcenter.heroku.com/articles/git#creating-a-heroku-remote
If you haven't created the heroku apps yet, you can create them and name the remotes simultaneously. I documented this here
Connect your git repo to an existing Heroku app
If you have already created your Heroku app, you can easily add a remote to your local repository with the heroku git:remote
command. All you need is your Heroku app’s name:
Check which remotes you've already set up and what their names are
Rename your remotes 'staging' and 'production'
By default, heroku names the remote heroku. you'll want to rename this to staging
or production
Last updated