On Fri, Mar 31, 2006 at 10:20:15AM -0800, news.gmane,org wrote:
} Why isnt the RoR community focusing on robust and scalable mod_perl
style of
} Apache environment, rather then splintering all over the place with
} lighthttp, mongrel, WEBrick, SCGI, fcgi, etc???
Scgi, fcgi, fcgid, and mod_ruby are not Rails-specific. Work has been
done
to allow Rails to work with any of them (except mod_ruby) because their
suitability depends on a variety of things, including the platform.
WEBrick
also predates RoR, I believe, and it is only intended for development
(for
which it is well-suited). Lighttpd exists to provide good performance
while
being more loosely integrated with (or not requiring at all) Apache than
the various CGI methods. Mongrel is the new kid on the block, and may
wind
up replacing WEBrick and/or lighthttpd.
} Its frustrating as someone who is trying to migrate to RoR.
Do your development under WEBrick. The appropriate deployment option
will
be obvious based on your particular system’s constraints.
} Its very unlikely I would ever get a contract to work on any webserver
} except Apache, so it would seem logicaly to focus all our efforts to
make
} Apache the ‘production environment of record’ for RoR.
You should certainly become knowledgeable about Apache integration,
then.
Personally, I have been happy with mod_fcgid under Apache2. Then again,
I
don’t do real deployment.
} Just my $.02…
I was pretty frustrated when I was trying to figure out deployument for
my
first app. I couldn’t figure out what I should use, nor could I
determine
how to do what I wanted to do. Eventually I did find the docs I needed,
and
all is well. Once you figure it out, you can do it again. The problem is
that there are so many choices, but those choices exist because someone
out
there needed each one of them.
It would be nice to find a single document that covered all possible
deployment options and how to go about them. AFAIK, though, it doesn’t
exist. Feel free to write one. You probably won’t have enough knowledge
to
fill in all the options, but you can fill in what you know and leave the
skeleton open for submissions. Here’s an outline you could start from:
I) Introduction
II) Choices you must make
- What platform (Windows, *nix)?
- Virtual host or path?
- Integrate with Apache?
- Apache1 or Apache2?
? integrate with IIS?
III) Apache integration options
A) mod_proxy
- rewrite rules
- lighttpd
- mongrel
B) mod_scgi (I think)
C) mod_fcgi
D) mod_fcgid
IV) Standalone options
A) WEBrick
B) lighttpd
C) mongrel
???) IIS integration options???
???
–Greg