Loving Heroku

heroku hosting rails deployment

12|03|2009

The best thing since sliced bread? (Or maybe sliced host)...

Heroku lets you create a free account and handles everything, from git hosting to mysql data storage, etc.

Git push means cap deploy

When you've created your application, you have to shift around your previous strategy of deployment if ever you're used to the capistrano + staging + production deployment style.

As soon as you push the master branch, it immediately deploys your application.

How now?

Git branches of course!

git push origin master:refs/heads/edge

git fetch origin

git checkout -b --track edge origin/edge

Now when you push to the edge branch, it won't deploy just yet...

The new cap deploy

git checkout master
git merge edge
git pull; git push

If you haven't played around with heroku yet, I suggest you start now.

blog comments powered by Disqus