Sinatra-synchrony detector_rack_handler 未找到

发布于 2024-12-04 16:40:35 字数 673 浏览 0 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

熟人话多 2024-12-11 16:40:35

我已经推送了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文