mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
fix no sidetiq when using demon
This commit is contained in:
parent
636976e5d4
commit
89f801ac04
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue