Skip to content

Instantly share code, notes, and snippets.

@larsburgess
Last active June 20, 2016 21:39
Show Gist options
  • Save larsburgess/57fbf36c7bbf08dfdccf to your computer and use it in GitHub Desktop.
Save larsburgess/57fbf36c7bbf08dfdccf to your computer and use it in GitHub Desktop.
Simple script to run sidekiq web console given a redis url
#! /usr/bin/env ruby
require 'rack'
require 'sidekiq'
require 'sidekiq/web'
require 'sidekiq-failures'
url = ARGV[0] || 'redis://localhost:6379'
Sidekiq.configure_client do |config|
config.redis = { size: 1, url: url }
end
app = Sidekiq::Web
app.set :environment, :production
app.set :port, 9000
app.run!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment