Any ideas on the "ideal" Rails solution on a Windows box? Is it best to configure IIS to work with Ruby/Rails or to go the Apache 2 route? I''ve seen a little info on running Lighttpd on Windows via Cygwin, but not a whole lot - and it looks like you gotta compile it yourself with VC++. My client is on a Windows-only network and that is where I''ll be delpoying to obviously. I''ve thought about just using Webrick since the load will be light but the problem is that I''d also need to create a Windows Service to control it so that when and if they reboot the server that Webrick fires backup. I am not too sure either that Webrick will stand up to large uploads, as the client is uploading anywhere from 5 to 100+ meg uploads at times. Anyone done deployments to a Windows box? Thanks.
Chad Lung wrote:> Any ideas on the "ideal" Rails solution on a Windows box? Is it best > to configure IIS to work with Ruby/Rails or to go the Apache 2 route? > I''ve seen a little info on running Lighttpd on Windows via Cygwin, but > not a whole lot - and it looks like you gotta compile it yourself with > VC++. My client is on a Windows-only network and that is where I''ll > be delpoying to obviously. I''ve thought about just using Webrick > since the load will be light but the problem is that I''d also need to > create a Windows Service to control it so that when and if they reboot > the server that Webrick fires backup. I am not too sure either that > Webrick will stand up to large uploads, as the client is uploading > anywhere from 5 to 100+ meg uploads at times. > > Anyone done deployments to a Windows box? > > Thanks.I''ve configured Webrick to run as a service on a Windows 2003 box using this: http://www.duodata.de/ntwrapper/ It works fine. I know that Apache2 and FastCGI doesn''t work. You could also try lighttpd on cygwin or IIS+fastcgi. rgds Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
I have deployed apps on both windows and freebsd. On windows 2003 I''ve run Rails apps on IIS and Apache, both on FastCGI. On IIS I had it working but there were various ssues with routes, so I installed apache 2.0.54 and run it without incident. On IIS there is no trivial way to have multiple sites running, as the registry hack used only works for one hard-coded path (I have not hacked this hack to work for multiple sites, though I''m sure it can be done). For ease of deployment, issue-free routing, and the # of rails apps I run on this box I use Apache. I have played with lighty and cygwin (compiling, etc.) but not on this box and not in production. if you go with lighty be aware of a buffer issue with uploading files > 2mb. This will be fixed in 1.4 next month (IIRC). Also be aware that many ppl have had issues running Apache/FastCGI on the various flavors of windows. There have been a few threads about this on the ML. I suggest searching through the archives to find them, posted around May 20-30. The main ones are titled "apache + fastcgi (+windows) -- who has this working well?", "throwing in the towel (for now)", "Success - Rails, FastCGI and IIS / Windows server" --Matt On Jul 5, 2005, at 4:00 PM, Chad Lung wrote:> Any ideas on the "ideal" Rails solution on a Windows box? Is it best > to configure IIS to work with Ruby/Rails or to go the Apache 2 route? > I''ve seen a little info on running Lighttpd on Windows via Cygwin, but > not a whole lot - and it looks like you gotta compile it yourself with > VC++. My client is on a Windows-only network and that is where I''ll > be delpoying to obviously. I''ve thought about just using Webrick > since the load will be light but the problem is that I''d also need to > create a Windows Service to control it so that when and if they reboot > the server that Webrick fires backup. I am not too sure either that > Webrick will stand up to large uploads, as the client is uploading > anywhere from 5 to 100+ meg uploads at times. > > Anyone done deployments to a Windows box? > > Thanks. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >Matt Pelletier pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org
Matt, could you tell us some more on differences of RoR on Freebsd vs Windows in terms of performance & stabillity? As for the registry having hardcoded paths, it is easy solvable. Real short description at http://www.bitslapped.nl/articles/2005/06/09/running-multiple-rails-applicat ions-on-win2003. As for the ideal solution: this would be a native IIS isapi filter specific for RoR handling. To bad I don''t have any expertise to create such a plugin. Boris -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Matt Pelletier Sent: dinsdag 5 juli 2005 22:26 To: Chad Lung; rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Ideal solution on Windows I have deployed apps on both windows and freebsd. On windows 2003 I''ve run Rails apps on IIS and Apache, both on FastCGI. On IIS I had it working but there were various ssues with routes, so I installed apache 2.0.54 and run it without incident. On IIS there is no trivial way to have multiple sites running, as the registry hack used only works for one hard-coded path (I have not hacked this hack to work for multiple sites, though I''m sure it can be done). For ease of deployment, issue-free routing, and the # of rails apps I run on this box I use Apache. I have played with lighty and cygwin (compiling, etc.) but not on this box and not in production. if you go with lighty be aware of a buffer issue with uploading files > 2mb. This will be fixed in 1.4 next month (IIRC). Also be aware that many ppl have had issues running Apache/FastCGI on the various flavors of windows. There have been a few threads about this on the ML. I suggest searching through the archives to find them, posted around May 20-30. The main ones are titled "apache + fastcgi (+windows) -- who has this working well?", "throwing in the towel (for now)", "Success - Rails, FastCGI and IIS / Windows server" --Matt On Jul 5, 2005, at 4:00 PM, Chad Lung wrote:> Any ideas on the "ideal" Rails solution on a Windows box? Is it best > to configure IIS to work with Ruby/Rails or to go the Apache 2 route? > I''ve seen a little info on running Lighttpd on Windows via Cygwin, but > not a whole lot - and it looks like you gotta compile it yourself with > VC++. My client is on a Windows-only network and that is where I''ll > be delpoying to obviously. I''ve thought about just using Webrick > since the load will be light but the problem is that I''d also need to > create a Windows Service to control it so that when and if they reboot > the server that Webrick fires backup. I am not too sure either that > Webrick will stand up to large uploads, as the client is uploading > anywhere from 5 to 100+ meg uploads at times. > > Anyone done deployments to a Windows box? > > Thanks. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >Matt Pelletier pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
FreeBSD is going to be much more stable than Windows just by the very nature of the OS. -PJ On 7/6/05, Boris <boris-OWJDjcdC7C/2dWTfsa9fiw@public.gmane.org> wrote:> Matt, > > could you tell us some more on differences of RoR on Freebsd vs Windows in > terms of performance & stabillity? > > As for the registry having hardcoded paths, it is easy solvable. Real short > description at > http://www.bitslapped.nl/articles/2005/06/09/running-multiple-rails-applicat > ions-on-win2003. > > As for the ideal solution: this would be a native IIS isapi filter specific > for RoR handling. To bad I don''t have any expertise to create such a plugin. > > Boris > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Matt Pelletier > Sent: dinsdag 5 juli 2005 22:26 > To: Chad Lung; rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] Ideal solution on Windows > > I have deployed apps on both windows and freebsd. On windows 2003 I''ve run > Rails apps on IIS and Apache, both on FastCGI. On IIS I had it working but > there were various ssues with routes, so I installed apache 2.0.54 and run > it without incident. On IIS there is no trivial way to have multiple sites > running, as the registry hack used only works for one hard-coded path (I > have not hacked this hack to work for multiple sites, though I''m sure it can > be done). For ease of deployment, issue-free routing, and the # of rails > apps I run on this box I use Apache. I have played with lighty and cygwin > (compiling, > etc.) but not on this box and not in production. > > if you go with lighty be aware of a buffer issue with uploading files > > 2mb. This will be fixed in 1.4 next month (IIRC). > > Also be aware that many ppl have had issues running Apache/FastCGI on the > various flavors of windows. There have been a few threads about this on the > ML. I suggest searching through the archives to find them, posted around May > 20-30. The main ones are titled "apache + fastcgi (+windows) -- who has this > working well?", "throwing in the towel (for now)", "Success - Rails, FastCGI > and IIS / Windows server" > > --Matt > > On Jul 5, 2005, at 4:00 PM, Chad Lung wrote: > > > Any ideas on the "ideal" Rails solution on a Windows box? Is it best > > to configure IIS to work with Ruby/Rails or to go the Apache 2 route? > > I''ve seen a little info on running Lighttpd on Windows via Cygwin, but > > not a whole lot - and it looks like you gotta compile it yourself with > > VC++. My client is on a Windows-only network and that is where I''ll > > be delpoying to obviously. I''ve thought about just using Webrick > > since the load will be light but the problem is that I''d also need to > > create a Windows Service to control it so that when and if they reboot > > the server that Webrick fires backup. I am not too sure either that > > Webrick will stand up to large uploads, as the client is uploading > > anywhere from 5 to 100+ meg uploads at times. > > > > Anyone done deployments to a Windows box? > > > > Thanks. > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > Matt Pelletier > pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >