summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorДамјан Георгиевски <gdamjan@gmail.com>2014-01-23 18:24:31 +0100
committerДамјан Георгиевски <gdamjan@gmail.com>2014-01-23 18:24:31 +0100
commitbe150fa9913d760802dc4c673ed59930f03ffec0 (patch)
tree7651bfb114c26f7431ed94a49c0c988d8e4d7d62
parent6d3a92f22536ef01e8d770b11ba04ffe448b5679 (diff)
downloadgitlab-ce-be150fa9913d760802dc4c673ed59930f03ffec0.tar.gz
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
-rw-r--r--config.ru2
1 files changed, 1 insertions, 1 deletions
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'