Skip to content

Instantly share code, notes, and snippets.

@kelso
Created April 27, 2015 17:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelso/3fa18bd81a5f2110c6bf to your computer and use it in GitHub Desktop.
Save kelso/3fa18bd81a5f2110c6bf to your computer and use it in GitHub Desktop.
Deploy Rails aplikácie na Heroku s pg gemom
# 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