mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
Simplify unicorn config.
This commit is contained in:
parent
78c705f5de
commit
01f126e38f
|
@ -118,16 +118,11 @@ before_fork do |server, worker|
|
|||
puts "Starting up #{sidekiqs} supervised sidekiqs"
|
||||
|
||||
require 'demon/sidekiq'
|
||||
if @stats_socket_dir
|
||||
Demon::Sidekiq.after_fork do
|
||||
start_stats_socket(server)
|
||||
DiscourseEvent.trigger(:sidekiq_fork_started)
|
||||
end
|
||||
else
|
||||
Demon::Sidekiq.after_fork do
|
||||
DiscourseEvent.trigger(:sidekiq_fork_started)
|
||||
end
|
||||
Demon::Sidekiq.after_fork do
|
||||
start_stats_socket(server) if @stats_socket_dir
|
||||
DiscourseEvent.trigger(:sidekiq_fork_started)
|
||||
end
|
||||
|
||||
Demon::Sidekiq.start(sidekiqs)
|
||||
|
||||
Signal.trap("SIGTSTP") do
|
||||
|
|
Loading…
Reference in New Issue
Block a user