From 0890d0b76ab7219c2c147ca979246f16f0781a5b Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 9 Oct 2015 09:06:42 +0200 Subject: [PATCH] fix heroku dyno detection --- script/web_concurrency | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/web_concurrency b/script/web_concurrency index 430b12dc..871e8076 100755 --- a/script/web_concurrency +++ b/script/web_concurrency @@ -15,7 +15,7 @@ end if ENV['DYNO'] # we're on Heroku - case `uname -u`.to_i + case `ulimit -u`.to_i when 256 then concurrency = 2 # 1x dyno when 512 then concurrency = 4 # 2x dyno when 32768 then concurrency = 16 # px dyno