Skip to content

Instantly share code, notes, and snippets.

@LucasArruda
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucasArruda/b47694dc12c406447be2 to your computer and use it in GitHub Desktop.
Save LucasArruda/b47694dc12c406447be2 to your computer and use it in GitHub Desktop.
Quick deploy to Heroku from git repo
## 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