Skip to content

Instantly share code, notes, and snippets.

@anuragkapur
Created March 20, 2014 01:10
Show Gist options
  • Save anuragkapur/9655301 to your computer and use it in GitHub Desktop.
Save anuragkapur/9655301 to your computer and use it in GitHub Desktop.
# In a standard setup a remote called "heroku" points to your app. Remove this and setup two new "remotes" called "staging" and # "production".
$ git remote rm heroku
# point the remote named "staging" to the "staging" version of your app
$ git remote add staging git@heroku.com:wistreesolutions-staging.git
# point the remote named "production" to the "live" version of your app
$ git remote add production git@heroku.com:wistreesolutions.git
# To release to the staging version, push to the "staging" remote
$ git push staging master
# To release to the live or production version, push to the "production" remote
$ git push production master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment