aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 20:09:52 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 20:09:52 +0000
commitfd1d6d0eb32aef7443acb75fc020a72379718f14 (patch)
tree3dd03086a5a89570e8f76ff4f83f9749bc934098
parentb7a2973f718a6e115967411de4c2943a3b3b2255 (diff)
downloadrails-fd1d6d0eb32aef7443acb75fc020a72379718f14.tar.gz
rails-fd1d6d0eb32aef7443acb75fc020a72379718f14.tar.bz2
rails-fd1d6d0eb32aef7443acb75fc020a72379718f14.zip
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
-rw-r--r--railties/bin/lighttpd2
-rw-r--r--railties/configs/lighttpd.conf6
2 files changed, 5 insertions, 3 deletions
diff --git a/railties/bin/lighttpd b/railties/bin/lighttpd
index 0820ff5903..3220b16925 100644
--- a/railties/bin/lighttpd
+++ b/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
diff --git a/railties/configs/lighttpd.conf b/railties/configs/lighttpd.conf
index f9ab45263b..80a6703b37 100644
--- a/railties/configs/lighttpd.conf
+++ b/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" )