Created
March 5, 2013 19:42
-
-
Save Rafe/5093534 to your computer and use it in GitHub Desktop.
set multiple environment in heroku
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
heroku apps:create [app-name] --remote [env name] | |
than add --remote [env name] to execute command on env | |
set the environment varible and addons | |
ex: | |
heroku config set XXX=OOO --remote [env name] | |
heroku addons .... --remote [env name] | |
Set default env: | |
git config heroku.remote [env name] | |
Push branch to env: | |
git push [env name] [branch name]:master | |
Track branch: | |
git branch --set-upstream [branch name] [env name]/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment