|
|
@ -1,7 +1,9 @@
|
|
|
|
# This file is used by Rack-based servers to start the application.
|
|
|
|
# This file is used by Rack-based servers to start the application.
|
|
|
|
|
|
|
|
|
|
|
|
require 'unicorn/worker_killer'
|
|
|
|
if ENV['RAILS_ENV'] == 'production'
|
|
|
|
use Unicorn::WorkerKiller::Oom, (160*(1024**2)), (180*(1024**2))
|
|
|
|
require 'unicorn/worker_killer'
|
|
|
|
|
|
|
|
use Unicorn::WorkerKiller::Oom, (160*(1024**2)), (180*(1024**2))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
require ::File.expand_path('../config/environment', __FILE__)
|
|
|
|
require ::File.expand_path('../config/environment', __FILE__)
|
|
|
|
|
|
|
|
|
|
|
|