mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Run after_fork hooks correctly on Phusion Passenger
This commit is contained in:
parent
5045d8677c
commit
3afda54d22
@ -167,3 +167,11 @@ module Discourse
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if defined?(PhusionPassenger)
|
||||||
|
PhusionPassenger.on_event(:starting_worker_process) do |forked|
|
||||||
|
if forked
|
||||||
|
Discourse.after_fork
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user