Error loading Resque web interface

I installed Resque in Rails 3 using this tutorial .

The problem is that I am trying to use the Resque web interface. When I go to {localhost}/resque/, the browser is redirected to {localhost}/resque/resque/overview/true/false, which essentially does not exist. However {localhost}/resque/overview, it seems to open the correct interface, although it has broken links. (As when clicking on the statistics, it redirects me to {localhost}/resque/resque/stats/resque/true/falsethat again, which does not exist again)

Here is my config.ru file:

# 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
+3
source share
1 answer

, Sinatra 1.2.0. Sinatra 1.1.3 . Resque: https://github.com/defunkt/resque/issues#issue/221

:

"/resque", "/////" 404 Sinatra.

sinatra 1.1.3 Gemfile, " " : http://cl.ly/460d0C0x2N1W2D333j1f

Ruby , Gemfile:), Sinatra 1.1.3, :

$ gem uninstall sinatra
$ gem install sinatra -v 1.1.3

, Deluan.

+5

All Articles