Skip to content

Instantly share code, notes, and snippets.

@bazzel
Last active November 11, 2019 08:31
Show Gist options
  • Save bazzel/413df46f0677295177dded9ba20d9320 to your computer and use it in GitHub Desktop.
Save bazzel/413df46f0677295177dded9ba20d9320 to your computer and use it in GitHub Desktop.

Heroku

Create multiple environments:

$ heroku create --remote [env]

# example
$ heroku create --remote staging

Deploy [branch] to [env]:

$ git push [env] [branch]:master

# example
$ git push staging develop:master

Run rake:

heroku run rake db:migrate --remote [env]

Heroku accounts:

heroku accounts:add [account]
heroku accounts:set [account]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment