Phusion Passenger, you're my hero

I feel so weird. Maybe it’s just the side-effects of eating that old, pinky-brown colored and talking piece of raw meat that was sitting in the corner of my kitchen since a month or two… but as strange as it may sound, I think it’s something else.
I think it is something related to Rails that makes me so excited. I just tried deploying a rails application with Phusion Passenger (aka mod_rails)… and I am still shocked. Rails deployment has finally becomes a breeze! At the time I am writing this, I still have this exaggerated dumb smile in my face expressing my satisfaction… and I am alone in my house.
#UPDATE : I removed the smiling pig image that was put here to “express my satisfaction”. I removed it because it was not funny and it made me look like someone who is not funny… which is something I am not comfortable with. Now that I have removed the image of the smiling pig, I expect to receive my first comment (and tons of others) for this blog post. For those who liked the smiling pig, you can find it here and pretend it is funny.
Ok enough stupidities, Phusion Passenger is great. It is built to work with the Apache web server. No port configuration, no complicated vhost configuration, you upload your stuff and guess what? It works. Well, almost… to restart your rails application you just have to touch tmp/restart.txt. If you’re using capistrano, it means that you only have to do something like that :

namespace :deploy do
  task :restart, :roles => :app do
    run "touch #{current_path}/tmp/restart.txt"

And what about the vhost configuration?

<VirtualHost *:80>
DocumentRoot /home/you/apps/yourapp/current/public

I didn’t have time to play with all the settings and read the documentation… but I have the feeling that this thing is the light, try it!

gem install passenger

One thought on “Phusion Passenger, you're my hero

  1. 4.67 / 5 !! ah-ha! In your face! The readers have decided : this blog post was not that bad after all!
    Ok I voted 5 myself… but there is at least (but no more) 2 other persons who liked it.

Leave a Reply

Your email address will not be published. Required fields are marked *