public
Created

EngineYard resque-web

  • Download Gist
gistfile1.txt
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.