Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 542 Bytes

002.md

File metadata and controls

49 lines (34 loc) · 542 Bytes

Heroku

Get Heroku

Getting Started with Ruby on Heroku

Production

Gem

Gemfile:

gem 'sqlite3', group: :development

group :production do
  gem 'pg'
  gem 'rails_12factor'
end

Bundle

$ bundle install --without production

Git

$ git init
$ git add --all
$ git commit -am "Initial commit"

Deploy

$ heroku login
$ heroku create
$ git push heroku master
$ heroku run rake db:migrate
$ heroku open