Or does anybody prefer fastcgi/fcgi? I’m using webrick for development,
but plan on using scgi
when I switch to production (because it appears to be an update to
fastcgi, and I couldn’t get
fastcgi working anyhow).
I’m working with FastCGI for the time being, but I too plan to move to
SCGI when I find a couple minutes in which to do so. Also, TextDrive’s
RailsBase will be all SCGI, it’s definitely going to get a lot of
production use there. Whatever works for you, go for it, but SCGI does
seem preferrable to FastCGI. Seems simpler to set up, too.
I’m now using SCGI for all my production sites. It’s simple to
configure and I haven’t had any reliability issues. Most of the sites
run on lighttpd, though one runs on Apache with cgi2scgi.
HI Jin,
How do you run SCGI ? Do you run it as a service ? Where did you get
your
binaries… I think I’m having trouble with binary version or something.
In both cases Apache’s receiving the request and
proxying it to lighttpd.
What do you guesstimate the performance difference to be, versus using
only Lighttpd? I’m thinking
of trying Lighttpd, but will probably have to keep Apache around.
All you need to do is adopt the instiki instructions, located here:
For reference, here are my registry keys:
AppDirectory = (path to your web app, not the public directory but the
root
of the rails app)
Application = c:\ruby\bin\ruby.exe
c:\path_to_your_webapp\script\scgi_service