1

我有一个在 EngineYard 上运行的项目,我已经开始 resque-web

Starting 'resque-web'...
'resque-web' is already running at http://0.0.0.0:5678

从命令行,我可以看到工人的状态,有 3 个工人处于空闲状态。

我无法通过访问 xxxx:5678 看到 Resque Web UI,如果 xxxx 是我可以访问我的应用程序的地方。如何使用 Web 界面查看工作人员及其状态?

4

1 回答 1

0

像这里建议的那样在 routes.rb 中安装 resque 网络: Resque, Devise and admin authentication

  resque_constraint = lambda do |request|
    request.env['warden'].authenticate? and request.env['warden'].user.admin?
  end

  constraints resque_constraint do
    mount Resque::Server, :at => "/admin/resque"
  end

我发现您可能会在尝试通过 engineyard 上的 HTTP 访问 resque 网络时遇到“403 - 禁止”错误。在这种情况下,请尝试使用 HTTPS。

于 2012-10-14T17:13:29.313 回答