Created
August 2, 2010 01:11
-
-
Save iamwilhelm/503973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "config/environment" | |
# HTTP Auth For Resque Console | |
AUTH_PASSWORD = "password" || ENV['AUTH'] | |
if AUTH_PASSWORD | |
Resque::Server.use Rack::Auth::Basic do |username, password| | |
password == AUTH_PASSWORD | |
end | |
end | |
use Rails::Rack::Static | |
run Rack::URLMap.new( | |
"/" => ActionController::Dispatcher.new, | |
"/resque" => Resque::Server.new | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment