Last active
August 29, 2015 14:21
-
-
Save bchase/694543dece7922a02093 to your computer and use it in GitHub Desktop.
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 | |
| toolbelt | |
| - install toolbelt -> https://toolbelt.heroku.com/ | |
| - login w/ toolbelt | |
| $ heroku login | |
| - add ssh keys | |
| $ heroku keys:add | |
| prepare rails | |
| - add to Gemfile | |
| group :production do | |
| gem 'pg' | |
| end | |
| - then | |
| $ bundle && git commit ... | |
| deploy | |
| - create an app | |
| # run this inside rails root for the project: | |
| $ heroku create [desired-app-subdomain] # e.g. koopman-api | |
| # this creates -> https://koopman-api.herokuapp.com | |
| - push you code | |
| $ git push heroku master | |
| - migrate your DB | |
| $ heroku run rake db:migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment