我已經使用this tutorial在Rails 3中安裝了Resque。Resque網頁界面加載錯誤
問題是當我嘗試使用Resque Web界面。當我去{localhost}/resque/
時,瀏覽器被重定向到{localhost}/resque/resque/overview/true/false
,這本質上不存在。 但是{localhost}/resque/overview
似乎打開了正確的界面,雖然已經斷開鏈接。 (就像點擊統計再次重定向我{localhost}/resque/resque/stats/resque/true/false
,而這又是不存在的)
這裏是我的config.ru文件:
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
require 'resque/server'
require 'logger'
# Set the AUTH env variable to your basic auth password to protect Resque.
AUTH_PASSWORD = 'secret'
if AUTH_PASSWORD
Resque::Server.use Rack::Auth::Basic do |username, password|
password == AUTH_PASSWORD
end
end
run Rack::URLMap.new \
"/" => Marina::Application,
"/resque" => Resque::Server.new