Mercurial > hg > soundsoftware-site
annotate .svn/pristine/05/05366a1767d0cebdb112d7b0a839d8704040e98a.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 #!/usr/bin/env ruby |
Chris@909 | 2 # |
Chris@909 | 3 # You may specify the path to the FastCGI crash log (a log of unhandled |
Chris@909 | 4 # exceptions which forced the FastCGI instance to exit, great for debugging) |
Chris@909 | 5 # and the number of requests to process before running garbage collection. |
Chris@909 | 6 # |
Chris@909 | 7 # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log |
Chris@909 | 8 # and the GC period is nil (turned off). A reasonable number of requests |
Chris@909 | 9 # could range from 10-100 depending on the memory footprint of your app. |
Chris@909 | 10 # |
Chris@909 | 11 # Example: |
Chris@909 | 12 # # Default log path, normal GC behavior. |
Chris@909 | 13 # RailsFCGIHandler.process! |
Chris@909 | 14 # |
Chris@909 | 15 # # Default log path, 50 requests between GC. |
Chris@909 | 16 # RailsFCGIHandler.process! nil, 50 |
Chris@909 | 17 # |
Chris@909 | 18 # # Custom log path, normal GC behavior. |
Chris@909 | 19 # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' |
Chris@909 | 20 # |
Chris@909 | 21 require File.dirname(__FILE__) + "/../config/environment" |
Chris@909 | 22 require 'fcgi_handler' |
Chris@909 | 23 |
Chris@909 | 24 RailsFCGIHandler.process! |