Merge pull request #1941 from mpakus/master

Update puma.rb fixed: num_worker(S)
This commit is contained in:
Sam 2014-02-13 17:15:03 +11:00
commit f156f173fd

View File

@ -1,6 +1,6 @@
# First, you need to change these below to your situation.
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.
workers "#{num_workers}"