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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -