From be150fa9913d760802dc4c673ed59930f03ffec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Thu, 23 Jan 2014 18:24:31 +0100 Subject: Check specifically for Unicorn in rack config.ru file Don't assume that if the Rack server is not Passenger then it must be Unicorn. There are many other Rack servers in the world (uwsgi being one example that people use a lot). The reverse check is much more logical, i.e. check explicitly for Unicorn --- config.ru | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ru b/config.ru index c45449dd03f..e90863a5c21 100644 --- a/config.ru +++ b/config.ru @@ -1,6 +1,6 @@ # This file is used by Rack-based servers to start the application. -unless defined?(PhusionPassenger) +if defined?(Unicorn) require 'unicorn' # Unicorn self-process killer require 'unicorn/worker_killer' -- cgit v1.2.1