Mongrel now has support for running as a Win32 service right out of the box. The support is still rough but works well enough that we decided to release it. You can thank Luis Lavena for working on this and making it so nice. After you do the gem install, find a Rails application you want to run and do:
$ mongrel_rails_service install -n myapp -r c:\my\path\to\myapp -p 4000 -e production $ mongrel_rails_service start -n myapp
Now hit the port and poof, works. Stopping the app is just done with:
$ mongrel_rails_service stop -n myapp
And, you can even set the CPU processor affinity for the service when yourun the install command. Canâ€™t even do that on POSIX yet. Now thatâ€™s hot. If you run into an app thatâ€™s not running right, my suggestion is to run it with the regular mongrel_rails runner:
$ cd c:\my\path\to\myapp $ mongrel_rails start -p 4500
Since that will spit out error messages and stuff to the console. Use CTRL-Pause/Break to stop.