fix heroku dyno detection

This commit is contained in:
Konstantin Haase 2015-10-09 09:06:42 +02:00
parent 3e112294cb
commit 0890d0b76a

View File

@ -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