【问题标题】:How to access Resque Web UI started in EngineYard如何访问在 EngineYard 中启动的 Resque Web UI
【发布时间】:2012-10-15 01:13:29
【问题描述】:

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

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

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

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

【问题讨论】:

    标签: ruby-on-rails resque engineyard


    【解决方案1】:

    按照此处的建议在 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。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      • 1970-01-01
      相关资源
      最近更新 更多