rails/actiontext/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
..
dummy Omit workers and preload_app! from Puma config 2022-06-03 12:38:21 -05:00
fixtures Improve ActionText extensiblibility 2020-12-29 20:06:45 -05:00
integration Fix deprecation warnings in Action Text tests 2022-03-19 07:20:31 +00:00
system Locate `fill_in_rich_text_area` by `<label>` text 2020-10-02 18:02:14 -04:00
template Revert #38957 (#44287) 2022-01-29 14:27:45 +01:00
unit Better ActionText plain text output for nested lists (#37976) 2021-10-12 18:05:04 +02:00
application_system_test_case.rb Add ActionDispatch::SystemTestCase#fill_in_rich_text_area 2019-05-13 12:44:06 -04:00
test_helper.rb Implicitly assert no exception is raised in `assert_queries` & al 2022-02-19 09:11:14 +01:00