Created
May 10, 2018 15:17
-
-
Save ddrscott/e465d6f078ed8a27c320e5a258c67e98 to your computer and use it in GitHub Desktop.
Standalone Sidekiq Web Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Run Sidekiq Web Standalone | |
require 'rack' | |
require 'sidekiq' | |
require 'sidekiq-ent' | |
require 'sidekiq-pro' | |
Sidekiq.configure_client do |config| | |
config.redis = { :size => 1 } | |
end | |
require 'sidekiq/web' | |
Rack::Handler::WEBrick.run Sidekiq::Web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is to avoid waiting for an entire Rails server to startup just to peek at some worker activity.