1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/simple.ru

15 lines
368 B
Text
Raw Normal View History

# Easiest way to run Sidekiq::Web.
# Run with "bundle exec rackup simple.ru"
require 'sidekiq'
# A Web process always runs as client, no need to configure server
Sidekiq.configure_client do |config|
2017-11-02 12:03:37 -04:00
config.redis = { url: 'redis://localhost:6379/0', size: 1 }
end
Sidekiq::Client.push('class' => "HardWorker", 'args' => [])
require 'sidekiq/web'
run Sidekiq::Web