HEROKU: QUICK GUIDE TO DEPLOYING YOUR RAILS APP

 

Once you're up with the prerequisites: http://docs.heroku.com/quickstart

 

If you have some specific gem dependencies create a new file called .gems in the root directory of your app e.g.

 

mislav-will_paginate --version '>= 2.3.11' --source gems.github.com

authlogic --version '>= 2.1.2' --source gems.github.com

 

then:

cd myapp

git init

git add .

git commit -m "commit to git"

heroku create

git push heroku master

heroku db:push

 

(if you don't get a running app after the db:push then you may have a schema discrepancy - like when I did by naughtily deleting columns within mysql itself)

 

 

REFS:

http://docs.heroku.com/git

 

http://docs.heroku.com/gems

 

Filed under  //  heroku   rails  
Posted

quick reminder for installing gems to heroku

1. create the file .gems in your app's root directory; with the gem name, version and source; for example:

mislav-will_paginate --version '>= 2.3.2' --source gems.github.com

 

2. add to git:

git add .gems

git commit -m "added gem manifest"

 

3. deploy:

git push heroku master

 

Filed under  //  git   heroku   ruby  
Posted