From 3ebcb6c2efbd7c359ad7c468c5684fc799e0716e Mon Sep 17 00:00:00 2001 From: fauno Date: Sat, 20 Apr 2019 12:33:46 -0300 Subject: [PATCH] configuracion para puma --- config/puma.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index 134e88b..9e7efa9 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -24,14 +24,15 @@ environment ENV.fetch('RAILS_ENV') { 'development' } # Workers do not work on JRuby or Windows (both of which do not support # processes). # -# workers ENV.fetch("WEB_CONCURRENCY") { 2 } +workers ENV.fetch('WEB_CONCURRENCY') { 2 } # Use the `preload_app!` method when specifying a `workers` number. # This directive tells Puma to first boot the application and load code # before forking the application. This takes advantage of Copy On Write # process behavior so workers use less memory. # -# preload_app! +preload_app! # Allow puma to be restarted by `rails restart` command. plugin :tmp_restart +pidfile 'tmp/puma.pid'