Mod_rails structures based on the use of the rails running apache environment
Passenger (mod_rails) is an apache-based application deployment of rails program currently supports Linux, BSD, OS X platform, not to support the windows, the installation and deployment of rails applications is very simple, the implementation of efficiency is very high, suitable for applications rails production environment deployment.

Installation Method:
sudo gem install passenger
sudo passenger-install-apache2-module
Run the above command, if there is no error, note mod_rails installed successfully.

Configure a virtual host:

<VirtualHost *:80>
ServerName www.mycook.com
DocumentRoot / webapps / mycook / public
</ VirtualHost>

If you need to restart rails applications, is very simple, only need to run:

Code:
touch / webapps / mycook / tmp / restart.txt
rails application will automatically restart