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
A Distributed Ruby Web Application Framework
August 26th, 2008 | General, News
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 ↓
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
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
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