Skip to content

Instantly share code, notes, and snippets.

@JackNicholas
Last active December 22, 2015 18:09
Show Gist options
  • Save JackNicholas/6510941 to your computer and use it in GitHub Desktop.
Save JackNicholas/6510941 to your computer and use it in GitHub Desktop.
command line steps for deploying to heroku
# set up git in local
$ cd into-your-app-root-folder
$ git init
$ git add .
$ git commit -m "initial commit" (or using my shortcut, git ci --all -m "initial commit")
# set up heroku remote
$ heroku create
Creating shrouded-reaches-5937... done, stack is cedar
http://shrouded-reaches-5937.herokuapp.com/ | git@heroku.com:shrouded-reaches-5937.git
Git remote heroku added
# verify remotes set up ok
$ git remote -v
heroku git@heroku.com:shrouded-reaches-5937.git (fetch)
heroku git@heroku.com:shrouded-reaches-5937.git (push)
$ git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment