diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-25 16:21:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-25 16:21:23 +0000 |
commit | 8e4a5996b03e037c62ef560d9e6851eda5a6fa69 (patch) | |
tree | 974c2cad8ab8069a79b71bdb8df9511455d227f6 /public/dispatch.fcgi.example | |
parent | 52547466f0f1ce8b41bf1539546aaa28457077a1 (diff) | |
download | redmine-8e4a5996b03e037c62ef560d9e6851eda5a6fa69.tar.gz redmine-8e4a5996b03e037c62ef560d9e6851eda5a6fa69.zip |
Fixed: 9268 These files should be moved out of revision control
Renamed to *.example:
* config/database.yml
* public/dispatch.cgi
* public/dispatch.fcgi
* public/dispatch.rb
git-svn-id: http://redmine.rubyforge.org/svn/trunk@480 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/dispatch.fcgi.example')
-rwxr-xr-x | public/dispatch.fcgi.example | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/public/dispatch.fcgi.example b/public/dispatch.fcgi.example new file mode 100755 index 000000000..f934b3002 --- /dev/null +++ b/public/dispatch.fcgi.example @@ -0,0 +1,24 @@ +#!/usr/bin/ruby +# +# You may specify the path to the FastCGI crash log (a log of unhandled +# exceptions which forced the FastCGI instance to exit, great for debugging) +# and the number of requests to process before running garbage collection. +# +# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log +# and the GC period is nil (turned off). A reasonable number of requests +# could range from 10-100 depending on the memory footprint of your app. +# +# Example: +# # Default log path, normal GC behavior. +# RailsFCGIHandler.process! +# +# # Default log path, 50 requests between GC. +# RailsFCGIHandler.process! nil, 50 +# +# # Custom log path, normal GC behavior. +# RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' +# +require File.dirname(__FILE__) + "/../config/environment" +require 'fcgi_handler' + +RailsFCGIHandler.process! |