Mack w/ Apache and mod_rails

Thanks to Mack user, Diogo Almeida, there’s a great write up on the wiki on how to configure Apache using mod_rails to host a Mack app.  Thanks Diogo.

http://www.mackwiki.com/using_passenger_phusion_to_host_a_mack_application

3 comments ↓

#1 DeLynn Berry on 08.31.08 at 3:04 pm

In addition to the steps detailed in the wikie page, I also had to add a config.ru file at the root of my Mack application. I copied the following from the mod_rails documentation site:

ENV["MACK_ENV"] = ENV["RACK_ENV"]
load(”Rakefile”)
require ‘rubygems’
require ‘mack’
run Mack::Utils::Server.build_app

#2 Mark Bates on 09.01.08 at 4:22 pm

Thanks DeLynn, obviously I forgot to put that in the wiki. My bad. Oops. I’ll add it now. In Edge Mack there’s a Passenger generator that will generate the config.ru file for you:

$ rake generate:passenger

#3 DeLynn Berry on 09.02.08 at 11:20 am

I actually saw that generator in edge this weekend, just forgot to come back here an comment about it. :-)

I really enjoyed playing with Mack this weekend. Hopefully I can contribute further once I get more familiar with the project. Keep up the great work!

Leave a Comment