Skip to content

Instantly share code, notes, and snippets.

@larsburgess
Last active Jun 20, 2016
Embed
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 }
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