Mercurial > hg > soundsoftware-site
annotate public/.svn/text-base/dispatch.fcgi.example.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 #!/usr/bin/env ruby |
Chris@0 | 2 # |
Chris@0 | 3 # You may specify the path to the FastCGI crash log (a log of unhandled |
Chris@0 | 4 # exceptions which forced the FastCGI instance to exit, great for debugging) |
Chris@0 | 5 # and the number of requests to process before running garbage collection. |
Chris@0 | 6 # |
Chris@0 | 7 # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log |
Chris@0 | 8 # and the GC period is nil (turned off). A reasonable number of requests |
Chris@0 | 9 # could range from 10-100 depending on the memory footprint of your app. |
Chris@0 | 10 # |
Chris@0 | 11 # Example: |
Chris@0 | 12 # # Default log path, normal GC behavior. |
Chris@0 | 13 # RailsFCGIHandler.process! |
Chris@0 | 14 # |
Chris@0 | 15 # # Default log path, 50 requests between GC. |
Chris@0 | 16 # RailsFCGIHandler.process! nil, 50 |
Chris@0 | 17 # |
Chris@0 | 18 # # Custom log path, normal GC behavior. |
Chris@0 | 19 # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' |
Chris@0 | 20 # |
Chris@0 | 21 require File.dirname(__FILE__) + "/../config/environment" |
Chris@0 | 22 require 'fcgi_handler' |
Chris@0 | 23 |
Chris@0 | 24 RailsFCGIHandler.process! |