Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 432 Bytes
require 'resque/server'
require 'resque_scheduler'
require './config_resque.rb'
use Rack::Auth::Basic do |username, password|
[username, password] == [ENV["RESQUEWEB_LOGIN"], ENV["RESQUEWEB_PWD"]]
end
run Rack::URLMap.new \
"/" => lambda { |env|
[404, {'Content-Type' => 'text/html'}, ["<html><head><title>Dammit !</title></head><body>There's nothing to see here !</body></html>"]]
},
"/resque" => Resque::Server.new
Something went wrong with that request. Please try again.