respect WEB_CONCURRENCY env in unicorn.rb.example

...like the example unicorn config for heroku does: 5868c7b4b2/deployment/heroku/unicorn.rb (L3)
This commit is contained in:
Wu Haotian 2018-07-31 23:33:38 +08:00 committed by GitHub
parent 2c9b9bb29c
commit 3506faad51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ wd = File.expand_path(File.join(File.dirname(__FILE__), '..'))
app_path = wd
worker_processes 2
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 2)
preload_app true
timeout 180
listen "#{wd}/tmp/sockets/unicorn.socket"