Commit be150fa9913d760802dc4c673ed59930f03ffec0

Authored by Дамјан Георгиевски
1 parent 6d3a92f2

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
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config.ru
1 1 # This file is used by Rack-based servers to start the application.
2 2  
3   -unless defined?(PhusionPassenger)
  3 +if defined?(Unicorn)
4 4 require 'unicorn'
5 5 # Unicorn self-process killer
6 6 require 'unicorn/worker_killer'
... ...