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:
Sojan Jose 2022-07-12 12:27:33 +02:00 committed by GitHub
parent 827f977a37
commit 8f8a1813bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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