Last active
December 27, 2015 21:09
-
-
Save webmat/7390068 to your computer and use it in GitHub Desktop.
Deploying the Railsbridge message board to Heroku
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
# 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