Skip to content

Instantly share code, notes, and snippets.

@data-doge
Created July 28, 2015 02:34
Show Gist options
  • Save data-doge/8f18f5110352286cb012 to your computer and use it in GitHub Desktop.
Save data-doge/8f18f5110352286cb012 to your computer and use it in GitHub Desktop.
heroku notes
heroku notes:
after creating a heroku account, and downloading the heroku toolbelt
- test your app locally
- make sure your app's folder has been initialized as a git repo
- IMPORTANT: your .git folder, must be in the root of your application
- if not, terrible error message: "no cedar-supported app detected"
- if not already logged in: ```heroku login```
- and then fill out email and pw
- run ```heroku create <your-app-name>```
- this sets up a heroku remote in your git repo
- stage and commit all changes, and push up to your heroku remote
- ```git push heroku <your_branch>:master
- ```heroku run rake db:migrate``` to migrate your production database
- ```heroku run rake db:seed``` to seed your production database
- visit your application
- to observe activity on your application
- ```heroku logs --tail```
- to fix everything when things break for apparently no reason
- ```heroku restart```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment