A FastCGI-compliant executable for RubyOnRails

We are looking for a FastCGI protocol compliant RoR executable that can
be used to host RoR in FastCGI mode.

However, neither Ruby.exe nor Rubyw.exe appear to work with the FastCGI
protocol (http://www.fastcgi.com/devkit/doc/fcgi-spec.html). Perhaps
we are missing specific command line switches, or environment variables
necessary to make this work.

Any information much appreciated.

Thanks,

Mike Volodarsky
IIS7 team

it's been awhile since I attempted to serve Rails from IIS... I did a
quick google search and found
http://www.codeplex.com/RORIIS/Release/ProjectReleases.aspx however.
It looks like it just packages FCGI and Rewrite ISAPI filters into a
nice installer.

Good luck :slight_smile:

Thanks for the pointer.

Unfortunately (or maybe fortunately), we are not looking for a third
party IIS / FastCGI plugin server for Ruby ... we are building one :slight_smile:

What we need is a FastCGI compliant-client for RoR. Much like Ruby.exe
uses the CGI protocol to communicate with whatever CGI server, we need
a FastCGI-compliant executable that hosts RoR. Much like php-cgi.exe
does this for PHP.

Is there not such a thing for Ruby?

Thanks,

Mike

Rick Olson wrote:

What we need is a FastCGI compliant-client for RoR. Much like Ruby.exe
uses the CGI protocol to communicate with whatever CGI server, we need
a FastCGI-compliant executable that hosts RoR. Much like php-cgi.exe
does this for PHP.

Is there not such a thing for Ruby?

I'm not entirely sure what the seperate fastcgi executable does in
php, but there's no seperate executable for ruby. There are scripts
which speak the fastcgi protocol though. Like dispatch.fcgi in any
rails application. Perhaps that's what you're after?

Michael,

That could very well be it, if the script itself speaks FastCGI. And,
how does one execute this script from command line?

Thanks,

Mike

Michael Koziarski wrote:

Michael,

That could very well be it, if the script itself speaks FastCGI. And,
how does one execute this script from command line?

Thanks,

Mike

we start it with spawn-fcgi (or script/process/spawner).

RAILS_ENV=production /usr/local/bin/spawn-fcgi -f
/home/koz/apps/blog/public/dispatch.fcgi -p 8000

Not sure if that works on windows, but that's the general idea.

Exactly the same as you run any other Ruby script on Windows.

(Don't ask me how that is, I've never done it, but it probably involves
passing the script as a parameter to ruby.exe, or maybe associating the
.fcgi extension with ruby.exe, or maybe renaming dispatch.fcgi to be
dispatch.fcgi.rb while making sure that .rb is associated with ruby.exe).

- Matt

Thanks guys. I finally got it work, so we can unblock our progress
with IIS FastCGI support for RoR ... If you are interested, watch for
announcements on http://forums.iis.net/1103/ShowForum.aspx.

Thanks,

Mike