I’m sorry if this sounds like a stupid question, because it seems to be one of those “no duh” things, but can someone explain to me why Rails needs its own server (Mongrel, WEBrick, mod_rails, etc) and can’t simply use mod_ruby?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All apache instances running mod_ruby share a Ruby interpreter. This means that it can’t be used at all on shared hosts, or in any environment where there are multiple Rails applications running per machine. In might be possible to run multiple copies of the same application on one machine but you could also easily experience difficult to track down bugs. Because rails is single threaded, running only one ruby process per machine is sort of unthinkable.
Also, it doesn’t perform all that well.
For a more in depth discussion, check out this Phusion employee’s blog