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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/26/06, Mike Volodarsky <mvolo@microsoft.com> wrote:> > 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 teamit''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 :) -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
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 :) 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:> On 12/26/06, Mike Volodarsky <mvolo@microsoft.com> wrote: > > > > 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 :) > > -- > Rick Olson > http://weblog.techno-weenie.net > http://mephistoblog.com--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Koziarski
2006-Dec-27 19:18 UTC
Re: A FastCGI-compliant executable for RubyOnRails
> 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? -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
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:> > 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? > -- > Cheers > > Koz--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Koziarski
2006-Dec-27 20:22 UTC
Re: A FastCGI-compliant executable for RubyOnRails
> Michael, > > That could very well be it, if the script itself speaks FastCGI. And, > how does one execute this script from command line? > > Thanks, > > Mikewe 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. -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On Wed, Dec 27, 2006 at 11:59:45AM -0800, Mike Volodarsky wrote:> That could very well be it, if the script itself speaks FastCGI. And, > how does one execute this script from command line?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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---