add production env constraint on including gctools

This commit is contained in:
r888888888 2016-06-09 12:06:55 -07:00
parent 5249b5cd6e
commit 5f47564aef

View File

@ -2,7 +2,7 @@
require ::File.expand_path('../config/environment', __FILE__)
if defined? Unicorn
if defined?(Unicorn) && Rails.env.production?
require_dependency 'gctools/oobgc'
use GC::OOB::UnicornMiddleware
end