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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user