-
Notifications
You must be signed in to change notification settings - Fork 4
Heroku Cheat Sheet
If you haven't already, download the Heroku command line interface (CLI)
brew install heroku
From the repo run heroku create
to initialize a new app.
To deploy, run git push heroku master
.
See https://devcenter.heroku.com/articles/git#deploying-code for more information.
From the repo run heroku run rake db:migrate
See https://devcenter.heroku.com/articles/getting-started-with-rails4#rake for more information.
From the repo run heroku run rails console
.
See https://devcenter.heroku.com/articles/getting-started-with-rails4#console for more information.
The easiest way to check the error log for the deployed app is to run heroku logs
. This prints out the last 100 lines of the log by default.
You can print out more by using the -n
option, for example heroku logs -n 200
.
See https://devcenter.heroku.com/articles/logging for more information.