Skip to content

Instantly share code, notes, and snippets.

@tomas-stefano
Created May 5, 2012 17:34
Show Gist options
  • Select an option

  • Save tomas-stefano/2604213 to your computer and use it in GitHub Desktop.

Select an option

Save tomas-stefano/2604213 to your computer and use it in GitHub Desktop.
Put user and password for the resque-web
if Rails.env.production?
Resque::Server.use(Rack::Auth::Basic) do |user, password|
user == 'lifestyle'
password == 'lifestyle1234'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment