Upgrade to Pro — share decks privately, control downloads, hide ads and more …

deploy to heroku

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

deploy to heroku

Avatar for RailsGirls Ukraine

RailsGirls Ukraine

October 06, 2012
Tweet

More Decks by RailsGirls Ukraine

Other Decks in Programming

Transcript

  1. What we need?  A Heroku user account  Basic

    Ruby/Rails knowledge, including an installed version of Ruby 1.9.2, Rubygems, Bundler, and Rails 3.  Basic Git knowledge [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Accounts email and heroku password railsgirls
  2. Preparing the app change in Gemfile.rb to bundle install --without

    production gem ‘sqlite3’ group :development do gem ‘sqlite3’ end group :production do gem ‘pg’ end
  3. Preparing the app gem install heroku config.assets.initialize_on_precompile = false add

    to application.rb git init git add . git commit –m “initial commit” add project to git
  4. Deploying create new app push the code migrate database run

    the app or just http://app-name.herokuapp.com/ heroku create app-name git push heroku master heroku run rake db:migrate heroku run rake db:seed heroku open heroku keys:add c:\sites\.ssh\id_rsa.pub add ssh-key: login: heroku login