Browse Source

[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 year ago
parent
commit
6ea31b7444
1 changed files with 3 additions and 1 deletions
  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'
 require_relative 'auto_tune'
 
 
-worker_processes, = auto_tune
+num_workers, = auto_tune
+worker_processes num_workers
+
 listen "/tmp/unicorn.sock", :backlog => 4096
 listen "/tmp/unicorn.sock", :backlog => 4096
 
 
 preload_app true
 preload_app true