Update puma.rb fixed: num_worker(S)

This commit is contained in:
Ibragimov "MpaK" Renat 2014-02-13 11:08:27 +07:00
parent 5d7a33a799
commit a04e4f388b

View File

@ -1,6 +1,6 @@
# First, you need to change these below to your situation. # First, you need to change these below to your situation.
APP_ROOT = '/home/discourse/discourse' APP_ROOT = '/home/discourse/discourse'
num_worker=ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4 num_workers = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
# Second, you can choose how many threads that you are going to run at same time. # Second, you can choose how many threads that you are going to run at same time.
workers "#{num_workers}" workers "#{num_workers}"