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

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -