1. Install passenger gem on you're machine
$ sudo gem install passenger
2. Install apache2 module for passenger
$ sudo passenger-install-apache2-module
It does following three steps
a. The Apache 2 module will be installed for you.
If any software not available on you're server to install apache 2 module. It will guide you about missing software and some suggestion how to install those missed software
Once all support software available, then it compile & install apache 2 module.
b. Guide you how to configure apache
Once apache2 module installed, it guide you to configure apache - display LoadModule, RailsSpawnServer and RailsRuby location which will be required to configure passenger module on apache(httpd.conf).Just copy and paste those lines to httpd.conf
c. Guide you how to deploy a Ruby on Rails application
<VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public </VirtualHost>
add this virtualhost configuration on httpd.conf file
Now i hope you're apache2 server ready to deploy rails 3 application. it use passenger module for apache2.
No comments:
Post a Comment