How to use Mongrel instead of WEBrick?
I've installed Redmine 0.7 on a FreeBSD 6.2 server, and I'm having a really hard time keeping things running continuously. With WEBrick, it runs okay for a while, and then just stops answering requests. The ruby process needs a kill -9 and a restart to get it going again. I've now switched to FastCGI under Apache, but it also craps out:
[03/Jun/2008:16:37:55 :: 63987] Dispatcher failed to catch: bad content body (EOFError)
almost killed by this error
I'd like to give Mongrel a try, but as I'm a newbie to Rails stuff, it's not clear to me how to load the Rails app using Mongrel instead of WEBrick. Has anyone tried doing this?
At first I suspected it might have been some sort of sqlite3 problem, so I switched everything over to MySQL (not an easy process once there's data in there!). Things seem fine under MySQL, so at least I can eliminate the database as the cause of my ongoing problems...
I've heard bad things about fcgi. Apache mod_proxybalancer + mongrel seems to be the favorite. Or mod_rails if you're feeling adventurous. As for mongrel-vs-webrick. Just do gem install mongrel. Rails should autodetect mongrel and use that instead.
For more details on apache + mongrel setup, see this discussion:
The short answer for using mongrel is just to install it:
# gem install mongrel