How to use Rack map to run two Thin (or other) servers on different ports?
问题 My aim is to do some automated testing over HTTP and HTTPS/SSL, via Rack, without recourse to a proxy server setup or anything like that. I have a gem that I want to test and I'd like for others to be able to run tests on too, so I'd like it to be as self contained as possible. The code for App runs fine when run on it's own, so it's not included here, the problem is with the Rack part. I'd like to do something like this: app = Rack::Builder.app do map "/" do Rack::Handler::WEBrick.run App,