Created
March 20, 2014 01:10
-
-
Save anuragkapur/9655301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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