forked from e621ng/e621ng
implement oob gc for unicorn
This commit is contained in:
parent
3e5dd6ca20
commit
88a5d2945b
@ -1,4 +1,11 @@
|
|||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
|
|
||||||
|
if defined? Unicorn
|
||||||
|
require_dependency 'unicorn/oob_gc'
|
||||||
|
GC.disable
|
||||||
|
use Unicorn::OobGC
|
||||||
|
end
|
||||||
|
|
||||||
run Danbooru::Application
|
run Danbooru::Application
|
||||||
|
Loading…
Reference in New Issue
Block a user