mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -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
|
def after_fork
|
||||||
require 'sidekiq/cli'
|
require 'sidekiq/cli'
|
||||||
|
|
||||||
begin
|
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 = Sidekiq::CLI.instance
|
||||||
cli.parse([])
|
cli.parse([])
|
||||||
cli.run
|
cli.run
|
||||||
|
|
Loading…
Reference in a new issue