As a mod_perl developer, I have been looking into Ruby/Rails lately. I am a little confused as to what people are using for a production webserver environment. From what I understand, WEBBrick is an easy to use development environment but not really robust enough for production use. lighthttpd is fast but not as full featured or stable as apache. mod_fastcgi is depricated for Apache 2.2 and not maintained. Apache cgi seems to be the stable option, and ok for development, but I much prefer having a persistant interpreter - especially since Rails seems to have a lot of files to open on a request. I have a massive mod_perl site, and nearly drove the disk into the ground by turning on Apache Reload All, I had forgotten how much mod_perl had been holding up my server farm! So I guess the two remaining options are mod_fcgid and mod_proxy_fcgid. I tried mod_fcgid but couldnt get it to work. I got mod_fcgid to compile and install with a patch for Apache 2.2, but when I test a cgi with it, it 404's yet according to Apache's access and error logs the request was successful! (!!!??) Also, I couldnt find any documentation about anything special you need to do to the CGI to make mod_fcgi or mod_fastcgi work - I noticed Perl has a FCGI module - is that required? And does Ruby have an equivilent? I havent tried mod_proxy_fcgid yet. I would appreciate all input from anyone who is working with production rails, and especially anyone who has mod_fcgid or mod_proxy_fcgid working in Apache 2.2! I cant find a lot of information about mod_ruby - what state is this project in, and where can I find good documentation? Thanks Ruby peeps!
on 2006-03-30 21:05
on 2006-03-30 21:32
news.sonic.net wrote: > As a mod_perl developer, I have been looking into Ruby/Rails lately. > > I am a little confused as to what people are using for a production > webserver environment. I've been running Nitro and Rails apps with SCGI + Apache2 with good results. Worth looking into. If you are in need of more detailed help on getting your Rails app running, you will get better, faster help on the Rails mailing list. lists.rubyonrails.org -- James B. http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools