Skip to content

Instantly share code, notes, and snippets.

@webmat
Last active December 27, 2015 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webmat/7390068 to your computer and use it in GitHub Desktop.
Save webmat/7390068 to your computer and use it in GitHub Desktop.
Deploying the Railsbridge message board to Heroku
# Gemfile
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
# config/application.rb
config.assets.initialize_on_precompile = false
# command line
git commit -am "Set up Postgres for Heroku"
heroku create # optional name: heroku create my-unique-app-name
git push heroku master
heroku run rake db:migrate
# or
heroku run:detached rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment