简体   繁体   English

未找到Sinatra-synchrony detect_rack_handler

[英]Sinatra-synchrony detect_rack_handler not found

I'm attempting to run Sinatra with the sinatra-synchrony mod. 我试图用sinatra-synchrony mod运行Sinatra。 backed up by Thin. 由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 红宝石1.9.2p0
  • thin 1.2.11 薄1.2.11
  • sinatra: 1.2.6 sinatra:1.2.6
  • sinatra-synchrony: 0.2.0 sinatra-synchrony:0.2.0

I have pushed 0.2.1, which resolves this issue. 我已经推了0.2.1,这解决了这个问题。 Basically there's a constant that wasn't being defined correctly in the async-rack code. 基本上,在async-rack代码中没有正确定义常量。 Since async-rack was primarily just being used to fix a dumb logging issue, I've removed it for now. 由于async-rack主要用于解决愚蠢的日志问题,我现在已将其删除。 Perhaps in the future I will fix the logging by extracting the part of async-rack that actually fixes this. 也许将来我会通过提取实际修复它的async-rack部分来修复日志记录。 For now I'm going to just pull the code out. 现在我要把代码拉出来。 So try 0.2.1 and see if that resolves it. 所以尝试0.2.1,看看是否能解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM