Jul
21
2007
0
comments

Capistrano Rules

Capistrano is a framework for deploying Rails application (you can do more with it, but it comes with built-in tasks for rails). How does it work? It connects to the server through SSH, checks out the last version of your app from your subversion repository in a new directory (releases/{date}), runs migration (optional), symlinks the directory to /current. You’re up and running after simply running “cap deploy”.

It supports rollback when something goes wrong. Setup is really simple (for dreamhost, you can find info in the wiki). It supports more complex deployment scenarios to multiple machines (multiple app servers with one db server for example). It’s easily extensible if you need to add custom steps to your deployment procedure. Let’s say you have a directory for uploads, you can create a task to properly link to the new version.

It was my first time with Capistrano because I was working on Windows before. It is such a time-saver to have a great and powerful tool like this for deployment (compared to writing your own scripts). I think I’m in love.

Written by jfcouture in: Rails, Ruby, capistrano, dreamhost |
Jul
19
2007
4
comments

Why I Chose DreamHost For jfcouture.com

I was quiet last week as I was investigating moving my blog to a different hosting company. I have been with Textdrive for the last 2 years. They’re not bad, but they sure don’t provide an exceptional value. For 15$/month, you get anemic space and bandwith, a very slow, ugly and almost useless web panel. Since last year, you also get three other services from Joyent, such as Strongspace, but they’re not something I need.

With DreamHost, I get a boatload of storage and bandwith for 10$/month. Better, google for dreamhost coupon, and you get 90$ off. My first year is gonna cost me 30$. Their web panel is nice and simple and even includes a one-click installer for Wordpress. There’s also a 97 money back guarantee so I have time to investigate if my rails apps are gonna work. I hear support isn’t great, but they have a lot customers so you can google your problem and easily find a solution most of time.

Written by jfcouture in: Wordpress, dreamhost, hosting |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes