chore: Fix puma configuration (#5023)
Fixes the console warning: `` ` WARNING: Detected running cluster mode with 1 worker. Running Puma in cluster mode with a single worker is often a misconfiguration. ! Consider running Puma in single-mode (workers = 0) in order to reduce memory overhead. ```
This commit is contained in:
parent
827f977a37
commit
8f8a1813bf
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' }
|
|||
# Workers do not work on JRuby or Windows (both of which do not support
|
||||
# processes).
|
||||
#
|
||||
workers ENV.fetch('WEB_CONCURRENCY', 1)
|
||||
workers ENV.fetch('WEB_CONCURRENCY', 0)
|
||||
|
||||
# Use the `preload_app!` method when specifying a `workers` number.
|
||||
# This directive tells Puma to first boot the application and load code
|
||||
|
|
Loading…
Reference in a new issue