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