This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Commit 3330bcf
authored
[ruby/rack] Only add before_fork in multiple workers (#10146)
Fix the following warning:
Warning: The code in the `before_fork` block will not execute in the
current Puma configuration. The `before_fork` block only executes in
Puma's cluster mode. To fix this, either remove the `before_fork`
call or increase Puma's worker count above zero.1 parent f20e287 commit 3330bcf
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
0 commit comments