Besides the Mongrel_Rail for RoR app
Besides the Mongrel_Rail for RoR app, I found a new server modules:
Phusion Passenger
It is easy to deploy with Apache
http://www.modrails.com/
I have tried it, it works well, maybe more test on it in the future.
my ruby.conf for my app in Apache
“<”VirtualHost *:80”>”
ServerName myip
DocumentRoot /path/to/app/public/ # the RoR app’s public directory
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType text/html M604800
“<”/VirtualHost”>“