Skip to content

Instantly share code, notes, and snippets.

@Rafe
Created March 5, 2013 19:42
Show Gist options
  • Save Rafe/5093534 to your computer and use it in GitHub Desktop.
Save Rafe/5093534 to your computer and use it in GitHub Desktop.
set multiple environment in heroku
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