开发者

Sinatra-synchrony detect_rack_handler not found

I'm attempting to run Sinatra with the sinatra-synchrony mod. backed up by Thin.

Code:

require 'sinatra'
require 'sinatra/synchrony'

Causes an immediate error:

/var/lib/gems/1.9.1/gems/sinatra-1.2.6/lib/sinatra/base.rb:1290:in `detect_rack_handler': Server handler (thin,mongrel,webrick) not found. (RuntimeError)
    from /var/lib/gems/1.9.1/gems/sinatra-1.2.6/lib/sinatra/base.rb:1230:in `run!'
    from /var/lib/gems/1.9.1/gems/sinatra-1.2.6/lib/sinatra/main.rb:25:in `block in <module:Sinatra>

My setup


I have pushed 0.2.1, which resolves this issue. Basically there's a constant that wasn't being defined correctly in the async-rack code. Since async-rack was primarily just being used to fix a dumb logging issue, I've removed it for now. Perhaps in the future I will fix the logging by extracting the part of async-rack that actually fixes this. For now I'm going to just pull the code out. So try 0.2.1 and see if that resolves it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜