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

Version Path
g5_sibling_deployer_engine-0.7.0 config/initializers/resque.rb
g5_sibling_deployer_engine-0.6.3 config/initializers/resque.rb
g5_sibling_deployer_engine-0.6.2 config/initializers/resque.rb
g5_sibling_deployer_engine-0.6.1 config/initializers/resque.rb
g5_sibling_deployer_engine-0.5.0 config/initializers/resque.rb
g5_sibling_deployer_engine-0.4.2 config/initializers/resque.rb
g5_sibling_deployer_engine-0.4.1 config/initializers/resque.rb
g5_sibling_deployer_engine-0.4.0 config/initializers/resque.rb
g5_sibling_deployer_engine-0.3.3 config/initializers/resque.rb
g5_sibling_deployer_engine-0.3.2 config/initializers/resque.rb
g5_sibling_deployer_engine-0.2.6 config/initializers/resque.rb