mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3054 from phusion/master
Run after_fork hooks correctly on Phusion Passenger
This commit is contained in:
commit
cb62c275f5
1 changed files with 8 additions and 0 deletions
|
@ -167,3 +167,11 @@ module Discourse
|
|||
|
||||
end
|
||||
end
|
||||
|
||||
if defined?(PhusionPassenger)
|
||||
PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
||||
if forked
|
||||
Discourse.after_fork
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue