fix no sidetiq when using demon
This commit is contained in:
parent
636976e5d4
commit
89f801ac04
|
@ -151,8 +151,10 @@ class Demon::Sidekiq < Demon::Base
|
|||
|
||||
def after_fork
|
||||
require 'sidekiq/cli'
|
||||
|
||||
begin
|
||||
# Reload initializer cause it needs to run after sidekiq/cli
|
||||
# was required
|
||||
load Rails.root + "config/initializers/sidekiq.rb"
|
||||
cli = Sidekiq::CLI.instance
|
||||
cli.parse([])
|
||||
cli.run
|
||||
|
|
Loading…
Reference in New Issue