From dd6956b4ca72ac4ff29ee570d0f3b0d015345d91 Mon Sep 17 00:00:00 2001 From: Johnny Shields <27655+johnnyshields@users.noreply.github.com> Date: Sat, 6 Apr 2024 07:23:43 +0900 Subject: [PATCH] Update configuration.txt --- docs/reference/configuration.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/configuration.txt b/docs/reference/configuration.txt index 207429607a..2d82faf24a 100644 --- a/docs/reference/configuration.txt +++ b/docs/reference/configuration.txt @@ -900,18 +900,18 @@ parent process (`Puma documentation `_). # config/puma.rb - # Triggered in the Puma master process before it forks a child worker. + # Runs in the Puma master process before it forks a child worker. before_fork do Mongoid.disconnect_clients end - # Required when using Puma's fork_worker option. Triggered when - # child worker 0 before it forks granchild workers. + # Required when using Puma's fork_worker option. Runs in the + # child worker 0 process before it forks grandchild workers. on_refork do Mongoid.disconnect_clients end - # Triggered in each Puma child process after it forks from its parent. + # Runs in each Puma child process after it forks from its parent. on_worker_boot do Mongoid.reconnect_clients end