Selaa lähdekoodia

[ruby/grape] Fix unicorn config worker_processes (#8619)

`worker_processes` is a method that accepts an integer, instead of a
variable.
Petrik de Heus 1 vuosi sitten
vanhempi
commit
6ea31b7444
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      frameworks/Ruby/grape/config/unicorn.rb

+ 3 - 1
frameworks/Ruby/grape/config/unicorn.rb

@@ -1,6 +1,8 @@
 require_relative 'auto_tune'
 
-worker_processes, = auto_tune
+num_workers, = auto_tune
+worker_processes num_workers
+
 listen "/tmp/unicorn.sock", :backlog => 4096
 
 preload_app true