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

Tags: , , , ,

3 Responses to “Mack w/ Apache and mod_rails”

  1. DeLynn Berry Says:

    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 Says:

    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 Says:

    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!