Created
July 28, 2015 02:34
-
-
Save data-doge/8f18f5110352286cb012 to your computer and use it in GitHub Desktop.
heroku notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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