Skip to content
Browse files

Move down to 1 proc by default and a bit more help

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent b7a2973 commit fd1d6d0eb32aef7443acb75fc020a72379718f14 @dhh dhh committed Oct 28, 2005
Showing with 5 additions and 3 deletions.
  1. +1 −1 railties/bin/lighttpd
  2. +4 −2 railties/configs/lighttpd.conf
View
2 railties/bin/lighttpd
@@ -2,7 +2,7 @@
if RUBY_PLATFORM !~ /mswin/ && `lighttpd -version 2>/dev/null`.size > 0
puts "=> Rails application started on http://0.0.0.0:3000"
- puts "=> Ctrl-C to shutdown server"
+ puts "=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)"
`lighttpd -D -f #{File.dirname(__FILE__) + "/../"}/config/lighttpd.conf`
else
View
6 railties/configs/lighttpd.conf
@@ -12,11 +12,13 @@ accesslog.filename = "log/lighttpd.access.log"
url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
+# Change *-procs to 2 if you need to use Upload Progress or other tasks that
+# *need* to execute a second request while the first is still pending.
fastcgi.server = ( ".fcgi" =>
( "localhost" =>
(
- "min-procs" => 2,
- "max-procs" => 2,
+ "min-procs" => 1,
+ "max-procs" => 1,
"socket" => "log/fcgi.socket",
"bin-path" => "public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "development" )

0 comments on commit fd1d6d0

Please sign in to comment.
Something went wrong with that request. Please try again.