-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ru
23 lines (19 loc) · 859 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Yousell::Application
# http://blog.phusion.nl/2013/01/22/phusion-passenger-4-technology-preview-out-of-band-work/
if defined?(PhusionPassenger) && !Rails.env.development?
if PhusionPassenger.respond_to?(:require_passenger_lib)
# Phusion Passenger >= 4.0.33
PhusionPassenger.require_passenger_lib 'rack/out_of_band_gc'
else
# Phusion Passenger < 4.0.33
require 'phusion_passenger/rack/out_of_band_gc'
end
# Trigger out-of-band GC every 3 requests.
use PhusionPassenger::Rack::OutOfBandGc, 3
## Optional: disable normal GC triggers and only GC outside
## request cycles. Not recommended though, see section
## "What Ruby can do to improve out-of-band garbage collection"
# GC.disable
end