Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 409 Bytes
require 'sidekiq'
require 'yaml'
config = YAML.load_file('config.yml')
Sidekiq.configure_client do |c|
c.redis = { :namespace => config['sidekiq']['namespace'], :url => config['sidekiq']['url'], :size => 1}
end
require 'sidekiq/web'
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
username == config['sidekiq']['webuser'] && password == config['sidekiq']['webpass']
end
run Sidekiq::Web