Permalink
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 340 Bytes
require 'sidekiq/web'
require ::File.expand_path('../config/environment', __FILE__)
Sidekiq::Web.use Rack::Session::Cookie, :secret => ENV['RACK_SESSION_COOKIE']
Sidekiq::Web.instance_eval { @middleware.reverse! } # make session the first middleware to run
run Rack::URLMap.new(
"/" => Rails.application,
"/sidekiq" => Sidekiq::Web
)