ruby on rails - disable sidekiq in staging -


i've got sidekiq set in rails app , fine.

now want disable stagin env only.

i can change redis password in yml file, sure there must better (more elegant way) stop workers in 1 env.

btw, kill process in box every time deploy staging (capistrano-sidekiq), creates new process.

maybe like:

require 'capistrano-sidekiq' if fetch(:stage) != 'staging' 

Comments