Created
February 27, 2014 20:52
-
-
Save perplexes/9259305 to your computer and use it in GitHub Desktop.
Sidekiq Middleware inspector
This file contains 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
# Script to dump your current Sidekiq server middleware like `rake middleware` | |
# Drop this in script/sidekiq_middleware.rb and run: | |
# RAILS_ENV=production bundle exec sidekiq -r ./script/sidekiq_middleware.rb | |
puts "Eager loding Rails..." | |
require 'rails' | |
require 'sidekiq/rails' | |
require File.expand_path('./config/environment.rb') | |
::Rails.application.eager_load! | |
puts Sidekiq.server_middleware.entries.map(&:klass).join("\n") | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment