Skip to content

Commit

Permalink
Check specifically for Unicorn in rack config.ru file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gdamjan committed Jan 23, 2014
1 parent 6d3a92f commit be150fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit be150fa

Please sign in to comment.