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
This commit is contained in:
Дамјан Георгиевски 2014-01-23 18:24:31 +01:00
parent 6d3a92f225
commit be150fa991
1 changed files with 1 additions and 1 deletions

View File

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