Skip to content

Instantly share code, notes, and snippets.

Last active Jun 20, 2016
What would you like to do?
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 }
app = Sidekiq::Web
app.set :environment, :production
app.set :port, 9000!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment