Skip to content

Instantly share code, notes, and snippets.

@bchase
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save bchase/694543dece7922a02093 to your computer and use it in GitHub Desktop.

Select an option

Save bchase/694543dece7922a02093 to your computer and use it in GitHub Desktop.
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