# RE: Installing ROR/Webrick app on Windows 2000/2003 Server

**URL:** <https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834>\
**Category:** Rails\
**Created:** [July 18, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834 "2006-07-18T15:43:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_SBillS\_Froe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Post date:** [July 18, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834/1 "2006-07-18T15:43:47Z")

</div>

> -----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

---

<div class="post-metadata">

**Author:** ![William\_SBillS\_Froe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Post date:** [July 18, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834/2 "2006-07-18T16:49:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![William\_SBillS\_Froe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Post date:** [July 19, 2006, 12:22am UTC](https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834/3 "2006-07-19T00:22:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![William\_SBillS\_Froe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@William\_SBillS\_Froe](https://www.ruby-forum.com/u/William_SBillS_Froe)\
**Post date:** [July 19, 2006, 1:49am UTC](https://www.ruby-forum.com/t/re-installing-ror-webrick-app-on-windows-2000-2003-server/98834/4 "2006-07-19T01:49:59Z")

</div>

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.
