From 3506faad5102b472a68df8d4ba9fc4cf257586b7 Mon Sep 17 00:00:00 2001 From: Wu Haotian Date: Tue, 31 Jul 2018 23:33:38 +0800 Subject: [PATCH] respect WEB_CONCURRENCY env in unicorn.rb.example ...like the example unicorn config for heroku does: https://github.com/huginn/huginn/blob/5868c7b4b23516bce7f7a9867b2310d6ef85980b/deployment/heroku/unicorn.rb#L3 --- config/unicorn.rb.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn.rb.example b/config/unicorn.rb.example index ee26cf2c..125e836e 100644 --- a/config/unicorn.rb.example +++ b/config/unicorn.rb.example @@ -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"