rails/actionmailbox/test
Jonathan Hefner 471ab2347f Omit workers and preload_app! from Puma config
Since Puma 5.0 (puma/puma@05936689c8),
Puma will automatically set `workers` to `ENV["WEB_CONCURRENCY"] || 0`.
Additionally, if `ENV["WEB_CONCURRENCY"]` > 1, Puma will automatically
set `preload_app`.

This can lead to confusing scenarios for users who are unaware of this
behavior and have customized `config/puma.rb`.  For example, if a user
uncomments the `workers` and `preload_app!` directives, it is clear that
Puma will preload the app, and the number of workers can be configured
by setting `ENV["WEB_CONCURRENCY"]`.  If the user sets
`ENV["WEB_CONCURRENCY"]` > 1, but then changes their mind and removes
the `workers` or `preload_app!` directives *without* clearing
`ENV["WEB_CONCURRENCY"]`, Puma will still preload the app and launch
`ENV["WEB_CONCURRENCY"]` number of workers.  Similarly, if a user
uncomments *only* the `workers` directive and sets
`ENV["WEB_CONCURRENCY"]` > 1, Puma will preload the app even though the
`preload_app!` directive is still commented out.

To avoid such scenarios, this commit removes the commented-out `workers`
and `preload_app!` directives from the default `config/puma.rb`.

Also, to improve discoverability of available configuration options,
this commit adds a link to the Puma DSL documentation at the top of the
file.
2022-06-03 12:38:21 -05:00
..
controllers Fixes development Action Mailbox new mail form 2022-05-15 22:59:48 +02:00
dummy Omit workers and preload_app! from Puma config 2022-06-03 12:38:21 -05:00
fixtures/files Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
generators Module#const_set is a public method 2020-09-15 17:19:37 +09:00
jobs Import Action Mailbox 2018-12-25 21:32:35 -05:00
unit Change the AS::Notification payload to include the mailbox instance 2022-03-10 09:43:34 +00:00
test_helper.rb Depend on ruby/debug, replacing Byebug 2021-09-08 17:35:41 +02:00