]> projects.mako.cc - selectricity-live/blob - public/dispatch.fcgi
Upgrade to Rails 1.1.
[selectricity-live] / public / dispatch.fcgi
1 #!/usr/bin/ruby1.8
2
3 #!/usr/local/bin/ruby
4 #
5 # You may specify the path to the FastCGI crash log (a log of unhandled
6 # exceptions which forced the FastCGI instance to exit, great for debugging)
7 # and the number of requests to process before running garbage collection.
8 #
9 # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
10 # and the GC period is nil (turned off).  A reasonable number of requests
11 # could range from 10-100 depending on the memory footprint of your app.
12 #
13 # Example:
14 #   # Default log path, normal GC behavior.
15 #   RailsFCGIHandler.process!
16 #
17 #   # Default log path, 50 requests between GC.
18 #   RailsFCGIHandler.process! nil, 50
19 #
20 #   # Custom log path, normal GC behavior.
21 #   RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
22 #
23 require File.dirname(__FILE__) + "/../config/environment"
24 require 'fcgi_handler'
25
26 RailsFCGIHandler.process!

Benjamin Mako Hill || Want to submit a patch?