From pete at kapiti.co.nz Tue Feb 1 04:59:40 2011 From: pete at kapiti.co.nz (Pete) Date: Tue, 1 Feb 2011 22:59:40 +1300 Subject: [Mongrel] Mongrel service In-Reply-To: <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za><001501cb5a5b$2603ad10$720b0730$@prodispace.co.za><001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> Message-ID: Here are my notes: Prerequisites: upgrade ruby gems (gem update --system) verify that the currently installed version of mongrel is 1.1.5 or later and if it isn't: uninstall mongrel (gem uninstall mongrel) install mongrel (gem install mongrel) verify that the currently installed version of mongrel_service is 0.4.beta3 or later and if it isn't: uninstall mongrel_service (gem uninstall mongrel_service) install mongrel_service (gem install mongrel_service) use gem list and verify that the mongrel_service installed is 0.4 or later. If it isn't, you need to take these extra steps: uninstall mongrel_service (gem uninstall mongrel_service) install mongrel_service 0.4.beta3 (gem install mongrel_service --pre) verify that the correct mongrel service has been installed by typing mongrel_service at the dos prompt. Which should produce output like: Mongrel Windows Service, version 0.4.beta2 (c) 2006-2010 The Mongrel development team. mongrel_service is not designed to run form commandline, please use mongrel_rails service:: commands to create a win32 service. If the version is less than 0.4.beta2, you need to manually copy the new mongrel_service.exe. On my system, Ruby is installed in C:\Ruby and I would have to copy the file: C:\Ruby\lib\ruby\gems\1.8\gems\mongrel_service-0.4.beta3\resources\mongrel_s ervice.exe to folder: C:\Ruby\bin Finally, navigate to the folder holding the RoR application and invoke these commands to uninstall/install the service: mongrel_rails service::remove -N APALSvc mongrel_rails service::install -N APALSvc -D "AutoPallet/AutoLoader Service" -c "D:/Development/APAL6/APALUI" -e production -p 3035 --log log/mongrel.log Cheers Pete > -----Original Message----- > From: mongrel-users-bounces at rubyforge.org > [mailto:mongrel-users-bounces at rubyforge.org] On Behalf Of Edison Ting > Sent: Tuesday, 1 February 2011 5:44 p.m. > To: mongrel-users at rubyforge.org > Subject: Re: [Mongrel] Mongrel service > > Hi Luis, > I am trying to set up mongrel service on windows XP using > Rails 2.3.2 and mongrel 1.1.5. > I manage to run my app as windows services but I am unable to > go further with option such as -l, -P, or -C work. > I tried -l and give full log file path but there's no log file. > I tried -P but I don't see a pid file on the folder I specified. > I tried to do -p 4100+3 but unable to have the service run > for port 4100, 4101 and 4102. > I also would like to use -C so that I can use a yml config > file but I did not see any documentation of how to configure it. > I am familiar with mongrel_cluster in linux but I wish I > could get this working on windows machine as well. > I've read some of your post and indeed it helped me to get this far. > Please give me some light? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > From lists at ruby-forum.com Tue Feb 1 14:22:58 2011 From: lists at ruby-forum.com (Edison Ting) Date: Tue, 01 Feb 2011 20:22:58 +0100 Subject: [Mongrel] Mongrel service In-Reply-To: References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> Message-ID: My question is are we suppose to see a pid file in windows? and how are we allow the service to run multiple port like -p 3000+3 ? -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Feb 1 14:42:40 2011 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 1 Feb 2011 16:42:40 -0300 Subject: [Mongrel] Mongrel service In-Reply-To: References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> Message-ID: On Tue, Feb 1, 2011 at 4:22 PM, Edison Ting wrote: > My question is are we suppose to see a pid file in windows? > and pid files are not created on Windows. > how are we allow the service to run multiple port like > -p 3000+3 ? > You need to create multiple services at different ports. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Tue Feb 1 15:35:41 2011 From: lists at ruby-forum.com (Edison Ting) Date: Tue, 01 Feb 2011 21:35:41 +0100 Subject: [Mongrel] Mongrel service In-Reply-To: References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> Message-ID: <5f7ab4569c0340b7650b7b43662e6e68@ruby-forum.com> Great, Thanks for confirmation! I've been confused by -d (daemon mode) -N (# of servers) parameter. I guess those won't work in Windows. Some post gives me the impression that pid file exist in windows so I keep trying. My next questions is instead of creating multiple services, is there an option to allow one service run multiple ports. Something like creating a script file trigger all the ports when one service start? What is the best practice? Thanks!! =) -- Posted via http://www.ruby-forum.com/. From luislavena at gmail.com Tue Feb 1 15:54:09 2011 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 1 Feb 2011 17:54:09 -0300 Subject: [Mongrel] Mongrel service In-Reply-To: <5f7ab4569c0340b7650b7b43662e6e68@ruby-forum.com> References: <000a01cb5a52$57352570$059f7050$@prodispace.co.za> <001501cb5a5b$2603ad10$720b0730$@prodispace.co.za> <001601cb5a60$308bf530$91a3df90$@prodispace.co.za> <7fc4e519dc776f472d85dfc2cce3c264@ruby-forum.com> <5f7ab4569c0340b7650b7b43662e6e68@ruby-forum.com> Message-ID: On Tue, Feb 1, 2011 at 5:35 PM, Edison Ting wrote: > My next questions is instead of creating multiple services, is there an > option to allow one service run multiple ports. Something like creating > a script file trigger all the ports when one service start? > What is the best practice? Thanks!! =) No, right now there isn't. mongrel_service was designed behind that goal, but the code that powers that part is missing. (single mode is the only mode available in the current codebase) -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From lists at ruby-forum.com Fri Feb 25 17:23:34 2011 From: lists at ruby-forum.com (Russ Erickson) Date: Fri, 25 Feb 2011 23:23:34 +0100 Subject: [Mongrel] mongrel/mongrel_rails windows question Message-ID: <6cd065a4f502d35ebfddf11d1e4ea63f@ruby-forum.com> Hello! I'm just wondering if anyone has any recommendations for running mongrel/mongrel_service under Windows (Client requires Windows Server 2008, SQL Server 2008, IIS7, no budget for a *nix box of any kind). I have a working setup, but wondering if anyone has any further insight. Current working setup: Ruby 1.87 (via rubyinstaller.org) Rail 2.3.11 mongrel 1.1.15 (mingw32) mongrel_service 0.4.0 I'll be looking at using the ARR features of IIS7 to do some load balancing between a few instances of mongrel running on different ports on the same box. I have read a lot of posts from people discussing troubles in getting Ruby 1.92 for windows working with mongrel 1.1.20pre and mongrel_service. Does anyone have a working setup of this and is it worth fighting for? Russ -- Posted via http://www.ruby-forum.com/.