##// END OF EJS Templates
git-svn-id: http://redmine.rubyforge.org/svn/trunk@50 e93f8b46-1217-0410-a6f0-8f06a7374b81
Jean-Philippe Lang -
r48:26ec77585466
parent child
Show More
@@ -1,10 +1,10
1 #!e:/ruby/bin/ruby
1 #!/usr/bin/ruby
2
2
3 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
3 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
4
5 # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
5 # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6 # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
6 # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7 require "dispatcher"
7 require "dispatcher"
8
8
9 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
9 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10 Dispatcher.dispatch No newline at end of file
10 Dispatcher.dispatch
@@ -1,24 +1,24
1 #!e:/ruby/bin/ruby
1 #!/usr/bin/ruby
2 #
2 #
3 # You may specify the path to the FastCGI crash log (a log of unhandled
3 # You may specify the path to the FastCGI crash log (a log of unhandled
4 # exceptions which forced the FastCGI instance to exit, great for debugging)
4 # exceptions which forced the FastCGI instance to exit, great for debugging)
5 # and the number of requests to process before running garbage collection.
5 # and the number of requests to process before running garbage collection.
6 #
6 #
7 # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
7 # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
8 # and the GC period is nil (turned off). A reasonable number of requests
8 # and the GC period is nil (turned off). A reasonable number of requests
9 # could range from 10-100 depending on the memory footprint of your app.
9 # could range from 10-100 depending on the memory footprint of your app.
10 #
10 #
11 # Example:
11 # Example:
12 # # Default log path, normal GC behavior.
12 # # Default log path, normal GC behavior.
13 # RailsFCGIHandler.process!
13 # RailsFCGIHandler.process!
14 #
14 #
15 # # Default log path, 50 requests between GC.
15 # # Default log path, 50 requests between GC.
16 # RailsFCGIHandler.process! nil, 50
16 # RailsFCGIHandler.process! nil, 50
17 #
17 #
18 # # Custom log path, normal GC behavior.
18 # # Custom log path, normal GC behavior.
19 # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
19 # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
20 #
20 #
21 require File.dirname(__FILE__) + "/../config/environment"
21 require File.dirname(__FILE__) + "/../config/environment"
22 require 'fcgi_handler'
22 require 'fcgi_handler'
23
23
24 RailsFCGIHandler.process!
24 RailsFCGIHandler.process!
@@ -1,10 +1,10
1 #!e:/ruby/bin/ruby
1 #!/usr/bin/ruby
2
2
3 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
3 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
4
5 # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
5 # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6 # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
6 # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7 require "dispatcher"
7 require "dispatcher"
8
8
9 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
9 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10 Dispatcher.dispatch No newline at end of file
10 Dispatcher.dispatch
General Comments 0
You need to be logged in to leave comments. Login now