Sha256: 1759f031aa0c24d8a86510b436963188d73f44948d6a517493d1d33978353403
Contents?: true
Size: 462 Bytes
Versions: 11
Compression:
Stored size: 462 Bytes
Contents
# Setup for Heroku Resque.redis = ENV["REDISTOGO_URL"] if ENV["REDISTOGO_URL"] # Establish connection to the database before each job Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } # Require HTTP Basic Auth to view dashboard if ENV["RESQUE_HTTP_USER"] && ENV["RESQUE_HTTP_PASSWORD"] Resque::Server.use(Rack::Auth::Basic) do |user, password| user == ENV["RESQUE_HTTP_USER"] and password == ENV["RESQUE_HTTP_PASSWORD"] end end
Version data entries
11 entries across 11 versions & 1 rubygems