Jojo Siao

Icon

enjoying life

Deploying Rails Apps in Passenger in SubURIs

This is for future reference to other rails developers that uses Passenger, (which might be helpful to beginners as well.)

Steps:
1. create a symbolic link that points to your rails public directory from the DocumentRoot.

2. edit httpd.conf and add VirtualHost.

a.) add DocumentRoot
b.) add RailsBaseURI “< /rails-app-subdir > ”

3. edit environment.rb of your rails app and add at the end of file:
config.action_controller.relative_url_root = “/frendsmo” # with the slash !

Note: I follow these configurations using edge rails.

My First Attempt to install Phusion Passenger on our Fedora Core 7 Web Server

UPDATE: I’ve finally managed to install passenger version 2.0.6 on our company’s server. Everything went smooth.

I had the urge to attempt to have Ruby on Rails Applications running on our fedora core 7 web server along with Cakephp applications today. I thought to use Phusion Passenger otherwise known as a apache module to enable rails applications to run on apache (that’s how I understand it.)

Read the rest of this entry »