Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

EngineYard resque-web

View gist:1575082
1 2 3 4 5 6 7 8 9
require 'resque/server'
 
resque_constraint = lambda do |request|
request.env['warden'].authenticate? and request.env['warden'].user.admin? # or whatever manner your admin role can be determined
end
 
constraints resque_constraint do
mount Resque::Server.new, :at => "/resque"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.