Sinatra-synchrony detector_rack_handler 未找到
我正在尝试使用 sinatra-synchrony mod 运行 Sinatra。由薄支持。
代码:
require 'sinatra'
require 'sinatra/synchrony'
导致立即错误:
/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>
我的设置
- ruby 1.9.2p0
- Thin 1.2.11
- sinatra: 1.2.6
- sinatra-synchrony: 0.2.0
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
- ruby 1.9.2p0
- thin 1.2.11
- sinatra: 1.2.6
- sinatra-synchrony: 0.2.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经推送了 0.2.1,它解决了这个问题。基本上,异步机架代码中没有正确定义一个常量。由于 async-rack 主要用于修复愚蠢的日志记录问题,因此我现在将其删除。也许将来我会通过提取实际修复此问题的异步机架部分来修复日志记录。现在我将只提取代码。所以尝试 0.2.1 看看是否可以解决问题。
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.