Wednesday, 14 August 2013

Deploying with Phusion Passenger on OS X Server

Deploying with Phusion Passenger on OS X Server

I have a site that I am trying to deploy using Passenger. In installing
and setting up Phusion Passenger followed all the instructions posted
here: Can't get Phusion Passenger working with Mac OS X Mountain Lion and
Apache.
However, when I create a blank rails app and visit it on the web, I get a
403 error. One thing I noticed that differed from the link above, is that
the passenger_module lines that the installer spat out were:
LoadModule passenger_module
/Users/admin/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.10/buildout/apache2/mod_passenger.so
PassengerRoot /Users/admin/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.10
PassengerDefaultRuby /Users/admin/.rvm/wrappers/ruby-2.0.0-p247/ruby
Unlike in the link above, I inserted those in
/Library/Server/Web/Config/apache2/httpd_server_app.conf because that's
what the Phusion docs tell me to do on OS X Server
(http://www.modrails.com/documentation/Users%20guide%20Apache.html#working_with_apache_conf).
Has anyone run into an issue like this? When I remove the Rails app and
just place an index file in the directory, the site loads fine. Also, I
should mention that I am using PassengerPane to handle the VirtualHost
declarations, etc.

No comments:

Post a Comment