Heroku - tlam/Wiki GitHub Wiki

Pre-requiresites

  1. A heroku account

  2. Heroku

     gem install heroku
    
  3. Your Rails app under git

Hosting a Rails 3 beta app with Ruby 1.9.1

  1. Check the available heroku stacks:

     $ heroku stack
     *aspen-mri-1.8.6 
     bamboo-ree-1.8.7 (beta)
     bamboo-mri-1.9.1 (beta)
    
  2. Create your heroku app using the 1.9 stack:

     heroku create yourapp --stack bamboo-mri-1.9.1
    
  3. Push your source code to heroku:

     git push heroku master
    
  4. Migrate your db:

     heroku rake db:migrate
    

After renaming your heroku app from the web

git remote rm heroku
git remote add heroku [email protected]:yourapp.git

Re-connect a github repo to a heroku app

git remote add heroku [email protected]:project.git

Add new keys

heroku keys:add

Reference