Tuka Opaleye
2006-Jul-18 08:21 UTC
[Rails] Installing ROR/Webrick app on Windows 2000/2003 Server
Hi all, I am currently not able to use search since it is disabled, so I will ask my question and hope I am not repeating a past question. I am looking into developing an app to run in Windows 2000/2003 Server environment. To install ROR on a server to run an app on Webrick do I need any extra steps beyond those needed to install on my development laptop (XP prof) ? The idea is to run the aplication in an office LAN. I assume the ROR installations steps will be similar to my local installation. I plan to use the ROR windows installer. Thanks for your input Tuka -- Posted via http://www.ruby-forum.com/.
William (Bill) Froelich
2006-Jul-18 13:41 UTC
[Rails] Installing ROR/Webrick app on Windows 2000/2003 Server
> -----Original Message----- > I am looking into developing an app to run in Windows > 2000/2003 Server environment. To install ROR on a server to > run an app on Webrick do I need any extra steps beyond those > needed to install on my development laptop (XP prof) ?The basic install of the software and your application will be essentially the same as your development laptop. The main thing I assume you will want is to have the application automatically run when the server starts. This will require setting up your app to run as a service. I would highly recommend using Mongrel instead of Webrick for a number of reasons. First, it can be easily configured to work as a windows service (this is what I am using (although only running on WinXP essentially acting as a server). Second is performance Third is scalability. You don''t mention how many users will be accessing the application at the same time but you may find the need to add more instances of your application and if you are using Mongrel you can run the Mongrel cluster to expand your application.> The idea is to run the aplication in an office LAN. I assume > the ROR installations steps will be similar to my local > installation. I plan to use the ROR windows installer.This is exactly my situation. I have a very small specialized app that is used by 2-3 people served off a WinXP box under Mongrel as a service. Works great! --Bill
Brian Hogan
2006-Jul-18 14:48 UTC
[Rails] Installing ROR/Webrick app on Windows 2000/2003 Server
You cannot use Mongrel_Cluster under Windows, so larger apps require special care. I''ll be covering Windows deployment in an upcoming book. However, the long and short of this is that Mongrel is the best choice for deploying in Windows. You may need additional tools if you want scalability, but for smallish apps, it will work fine. You need Ruby (one click will work fine). Then you need to install Rails Then you install Mongrel gem install mongrel Pick the highest numbered version (0.13.3 or higher)... it''s going to be at the top of the list so you may need to scroll up and look in the buffer.) Accept all dependencies To run Mongrel, you just replace your call to script/server with mongrel_rails start Want to run in production mode? mongrel_rails start -e production Want to install as a service? 1. gem install mongrel_service 2. from the root of your app (where you normally start webrick) do mongrel_rails service::install -N my_test_app -e proudction 3. mongrel_rails service::start -N my_test_app If your app is configured properly then everything should go fine. See the mongrel docs for more information. With the right hardware, you should be able to get about 9 to 35 requests per second. On 7/18/06, William (Bill) Froelich <wfroelich@dbsnow.com> wrote:> > > -----Original Message----- > > I am looking into developing an app to run in Windows > > 2000/2003 Server environment. To install ROR on a server to > > run an app on Webrick do I need any extra steps beyond those > > needed to install on my development laptop (XP prof) ? > > The basic install of the software and your application will be > essentially the same as your development laptop. The main thing I > assume you will want is to have the application automatically run when > the server starts. This will require setting up your app to run as a > service. I would highly recommend using Mongrel instead of Webrick for > a number of reasons. > > First, it can be easily configured to work as a windows service (this is > what I am using (although only running on WinXP essentially acting as a > server). > > Second is performance > > Third is scalability. You don''t mention how many users will be > accessing the application at the same time but you may find the need to > add more instances of your application and if you are using Mongrel you > can run the Mongrel cluster to expand your application. > > > The idea is to run the aplication in an office LAN. I assume > > the ROR installations steps will be similar to my local > > installation. I plan to use the ROR windows installer. > > This is exactly my situation. I have a very small specialized app that > is used by 2-3 people served off a WinXP box under Mongrel as a service. > Works great! > > --Bill > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060718/67435e23/attachment.html
Thorsten Brückner
2006-Jul-18 21:04 UTC
[Rails] Re: Installing ROR/Webrick app on Windows 2000/2003 Server
Hi Tuka, I had some problems getting Apache and fastcgi (my preferred configuration) to work on a win2003 Server environment (after installing ROR / Fastcgi on linux several times successfully). I tried it several times with the xampp 1.5.3 package from apachefriends.org until mongrel crossed my way. At the beginning i used webrick; from my point of view mongrel seems more performant. I got happy with the following configuration steps: - installed Ruby with the Ruby 1.84 one-Click-installer (you have to use Version 1.8.4) - I had to set the environment variable for ruby manually ( type on command line ruby -v and you''ll see if it worked) - on the command line: gem install rails -- include-dependencies after that I installed mongrel - gem install mongrel mongrel asked to install the win32-service - i agreed. after that I started mongrel: mongrel_rails start It is also possible to let mongrel run as an win service; Before installation take a look at the documentation I also run it in an office LAN; mongrel is working well. Good luck! Thorsten Tuka Opaleye wrote:> Hi all, > > I am currently not able to use search since it is disabled, so I will > ask my question and hope I am not repeating a past question. > > I am looking into developing an app to run in Windows 2000/2003 Server > environment. To install ROR on a server to run an app on Webrick do I > need any extra steps beyond those needed to install on my development > laptop (XP prof) ? > > The idea is to run the aplication in an office LAN. I assume the ROR > installations steps will be similar to my local installation. I plan to > use the ROR windows installer. > > Thanks for your input > > Tuka-- Posted via http://www.ruby-forum.com/.
Tuka Opaleye
2006-Jul-18 22:22 UTC
[Rails] Re: Installing ROR/Webrick app on Windows 2000/2003 Server
Thanks for your input. I will look into the mongrel suggestion I have a few more questions: -Just to be sure.. Is it possible to run Webrick on one port and Mongrel on another for the same app ? i would just like to make sure that in case I want to revert to Webrick there will be no problems and also do some crosschecking on my development machine. -My app may have up to 5 people simulataneously Thanks for your input -- Posted via http://www.ruby-forum.com/.
Brian Hogan
2006-Jul-18 23:49 UTC
[Rails] Re: Installing ROR/Webrick app on Windows 2000/2003 Server
I would avoid WEBrick for your app... but yes it''s possible to run both servers pointing to the same app. In fact, that''s how you do load balancing with multiple servers. On 7/18/06, Tuka Opaleye <tuka@yorn.net> wrote:> > Thanks for your input. I will look into the mongrel suggestion > > I have a few more questions: > > -Just to be sure.. Is it possible to run Webrick on one port and Mongrel > on another for the same app ? i would just like to make sure that in > case I want to revert to Webrick there will be no problems and also do > some crosschecking on my development machine. > > -My app may have up to 5 people simulataneously > > Thanks for your input > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060718/31fae3b7/attachment.html