don't use unicorn worker killer if PhusionPassenger is defined

This commit is contained in:
James Newton 2013-12-20 10:30:34 -06:00
parent 0e4a8e231c
commit 756258ab1d

View file

@ -1,10 +1,12 @@
# This file is used by Rack-based servers to start the application.
# Unicorn self-process killer
require 'unicorn/worker_killer'
unless defined?(PhusionPassenger)
# Unicorn self-process killer
require 'unicorn/worker_killer'
# # Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
# Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, (200 * (1 << 20)), (250 * (1 << 20))
end
require ::File.expand_path('../config/environment', __FILE__)