Skip to content

Instantly share code, notes, and snippets.

@rymawby
Created June 10, 2013 15:13
Show Gist options
  • Select an option

  • Save rymawby/5749553 to your computer and use it in GitHub Desktop.

Select an option

Save rymawby/5749553 to your computer and use it in GitHub Desktop.
Deploying a rails app to Heroku - the little things I need to remind myself.
# Update rake file to use thin and pg when in production
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'thin'
gem 'pg'
end
# deploy to server
rails push heroku master
# migrate database
heroku run rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment