问题
How to create a windows service with Rails 3 and Ruby 1.9.2 using Mongrel?
回答1:
A few years ago mongrel_service
extension to Mongrel used to provide functionality to run a Rails application (using mongrel_service) as a service.
Due some changes in Rails 3 and the lack of continious development in Mongrel, there has been no update of mongrel internals to handle the newer version of Rails properly
Because of that, mongrel_service can't be used to run a Rails 3 application with Mongrel as a service.
However, as author of the original mongrel_service, I'm close to release an updated library that will be able to run a Rails, Thin or any time of Ruby application as Windows Service.
This requires a little bit more testing so is not ready for public. Announcement will be posted at my blog and also RubyInstaller Google Group
ETA less than a week (after RailsConf completes)
Sorry for not been able to help you better than that.
来源:https://stackoverflow.com/questions/6034707/how-to-create-a-windows-service-with-rails-3-and-ruby-1-9-2