Created
April 27, 2015 17:51
-
-
Save kelso/3fa18bd81a5f2110c6bf to your computer and use it in GitHub Desktop.
Deploy Rails aplikácie na Heroku s pg gemom
This file contains 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
# Instalacia Heroku Toolbelt: | |
# https://toolbelt.heroku.com | |
heroku login | |
# Install postgres on local machine: | |
http://postgresapp.com | |
# and run: | |
http://bit.ly/1kBJJi2 | |
cd ~/Code/address_book | |
git init . | |
git add . | |
git commit -am 'Initial commit' | |
# Gemfile: | |
group :production do | |
gem 'pg' | |
gem 'rails_12factor' | |
end | |
bundle | |
git commit -am 'Add pg gem' | |
heroku create | |
git push heroku master | |
heroku run rake db:migrate db:seed | |
heroku open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment