Have taken some time to investigate it tonight, I think a piece of code similar to
should work, the main change is to use our Rack handler instead of Mongrel or WEBrick for the server object
server = Rack::Handler::LSWS
Might need some tweaks like our RailsRunner.rb
Due our tight schedule and Ruby programming skills, if any experienced Ruby/Rails developer would to take this project, please contact us. we will pay your time.