Last active
August 29, 2015 14:10
-
-
Save LucasArruda/b47694dc12c406447be2 to your computer and use it in GitHub Desktop.
Quick deploy to Heroku from git repo
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
## summary | |
git remote add heroku git@heroku.com:heroku_app_name.git | |
git push heroku master | |
heroku open | |
## commented steps | |
# (if you haven't) add keys to heroku so you can push | |
heroku keys:add | |
# (opt) if projects doesn't exist* | |
heroku create heroku_app_name | |
# adding heroku as remote, so we can deploy to it | |
heroku git:remote -a heroku_app_name [-r remote_name] | |
# deploying! | |
git push heroku yourbranch:master | |
## cool | |
# check remote repos | |
git remote -v | |
-- | |
* if `git init` is already done | |
heroku apps:create example | |
-- | |
More info: | |
https://devcenter.heroku.com/articles/git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment