Brennan Dunn Web Application Developer

Thoughts, ramblings, and other sundry topics.


Local development with Passenger, having 1 reply


When Ken Collins first told me he was running Apache locally for development, I was confused. I thought: wow, that sounds like a lot of unnecessary stack for a local environment. And without Passenger, I'd still think the same.

But our friends at Phusion have created a really awesome module for Apache. So awesome that I'm now willing to consider Apache after having seen the light that is nginx. Passenger spawns Rails instances on demand, and allows you to be freed of spawning mongrels, and best of all, no more combining multiple application route sets that have run on localhost:3000 in your browsers history!

After adding as many entries as you need into /etc/hosts, all that's left to do to free yourself of mongrel madness is to add the appropriate entries in Apache's configuration.

<VirtualHost *:80>
        DocumentRoot "/Users/brennandunn/dev/oss/ozark/public"
        ServerName dev.brennandunn.com
</VirtualHost>

Now I have a handful of entries in both my hosts file and Apache's config, and am able to quickly jump around between projects. Oh yeah, and if you have a lot of ActiveResource based applications that talk back and forth to each other, definitely consider this approach. You'll never look back.

Woot!

Name
Email
Website
 
Alert you when new comments are posted?