forked from e621ng/e621ng
add production env constraint on including gctools
This commit is contained in:
parent
5249b5cd6e
commit
5f47564aef
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
|
|
||||||
if defined? Unicorn
|
if defined?(Unicorn) && Rails.env.production?
|
||||||
require_dependency 'gctools/oobgc'
|
require_dependency 'gctools/oobgc'
|
||||||
use GC::OOB::UnicornMiddleware
|
use GC::OOB::UnicornMiddleware
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user