# Deploying a RoR Intranet Application on Windows Server 2003

**URL:** <https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523>\
**Category:** Rails\
**Created:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523 "2005-11-12T12:49:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![obrien.andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@obrien.andrew](https://www.ruby-forum.com/u/obrien.andrew)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523/1 "2005-11-12T12:49:18Z")

</div>

Hi everyone,

I just finished developing a small reporting application using RoR and  
first I’d like to thank the community for the already much praised  
awesomeness of this framework. Now, my situation and question:

This application is pretty small and is probably only going to be used  
by 3-4 people at any time. Also I’m constrained to a Windows server  
and I’m far more familiar with deploying on Mac and \*nix servers. I  
figured that because of the size of the audience Apache + \*CGI seems  
like overkill and I’d rather just use WEBrick, which I had a pretty  
good experience with in development.

What the best way to set up WEBrick to run continuously on WIndows  
Server 2003? As a service (which I don’t know how to do, but I’ve  
heard tossed around as a solution)? If so, how would I do that?

Also, I’ve noticed that if I leave WEBrick running for awhile (\> 24  
hours or so), it will start throwing database related exceptions  
(ActiveRecord::StatementInvalid on a query on my index page).  
Restarting the process fixes this. What’s the best way to fix this in  
production? I’m ok with somehow scheduling a restart while the people  
are out of the office (although I don’t know how).

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![obrien.andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@obrien.andrew](https://www.ruby-forum.com/u/obrien.andrew)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523/2 "2005-11-12T12:49:38Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

You may be better off just configuring IIS to serve the rails  
application

[http://wiki.rubyonrails.com/rails/pages/HowtoSetupIIS](http://wiki.rubyonrails.com/rails/pages/HowtoSetupIIS)

That way you have even more control within Windows Server of setting  
up recycling if you need to, security etc etc.

On 8 Nov 2005, at 10:47, Andrew O’Brien wrote:

> are out of the office (although I don’t know how).  
> -----BEGIN PGP SIGNATURE-----  
> Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDcpO8rG6rd6Dh5SERAo72AKCKSllb094reUQ9e47KpOyd/B7SxQCgo9ij  
nUIMFrdBx2eJQxlc3C7VylI=  
=I10K  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![obrien.andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@obrien.andrew](https://www.ruby-forum.com/u/obrien.andrew)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523/3 "2005-11-12T12:49:47Z")

</div>

I would agree with that. As much as I would love to use Apache for  
hosting, we are windows shop ( ☹ ) and I’m pretty much stuck with  
IIS. That being said, setting up rails to run on IIS isn’t to terribly  
painful. The wiki is a good start but is missing some of the stuff on  
setting up FCGI. Do a google search for  
bitslapped rails windows  
and you should find another failrly good article to help you out. I’ve  
gotten this setup working on several 2003 boxes so far, and while I  
can’t say they have been used heavily I don’t see any problems running  
it like this. _crosses fingers_

---

<div class="post-metadata">

**Author:** ![obrien.andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@obrien.andrew](https://www.ruby-forum.com/u/obrien.andrew)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523/4 "2005-11-12T12:49:49Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

On Nov 10, 2005, at 7:45 AM, Nick S. wrote:

> I would agree with that. As much as I would love to use Apache for  
> hosting, we are windows shop ( ☹ ) and I’m pretty much stuck with  
> IIS. That being said, setting up rails to run on IIS isn’t to terribly  
> painful. The wiki is a good start but is missing some of the stuff on  
> setting up FCGI. Do a google search for  
> bitslapped rails windows  
> and you should find another failrly good article to help you out. I’ve  
> gotten this setup working on several 2003 boxes so far, and while I  
> can’t say they have been used heavily I don’t see any problems running  
> it like this. _crosses fingers_

Could you please update the Wiki with your experience?

Thank you!

jeremy  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDc6DiAQHALep9HFYRAqD5AJwI90jUhN4Y/XGNWdlEU4W06oFotACfUIrK  
X+NmVrJMQBvZkiAAZA07Gyw=  
=ngTA  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![obrien.andrew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/58f4c7/32.png) [@obrien.andrew](https://www.ruby-forum.com/u/obrien.andrew)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/deploying-a-ror-intranet-application-on-windows-server-2003/47523/5 "2005-11-12T12:49:50Z")

</div>

Can do.
