Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 736 Bytes

heroku.md

File metadata and controls

42 lines (38 loc) · 736 Bytes
Create New Heroku Remote
$ heroku create
Check Heroku Connection
$ git remote -v
Add Existing Local Repo To Heroku
heroku git:remote -a <heroku app name>
Rename Heroku Remote
$ git remote rename heroku <heroku app name>
Push Master to Heroku
$ git push heroku master
Push Other Branch to Heroku
$ git push heroku branch:<branchname>
Migrate DB to Heroku
$ heroku run rake db:migrate
Restart Heroku Database
$ heroku restart && heroku pg:reset DATABASE --confirm APP-NAME && heroku run rake db:migrate
Show logs of Heroku app
$ heroku logs
or flag with -t to show tails
$ heroku logs -t