mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Corrected a few spelling mistakes in the documentation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@217 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
c535a5abca
commit
d5d3bc9d82
4 changed files with 24 additions and 24 deletions
|
@ -1,4 +1,4 @@
|
|||
--
|
||||
---
|
||||
title: Lighttpd
|
||||
inMenu: true
|
||||
directoryName: Documentation
|
||||
|
|
|
@ -31,7 +31,7 @@ Throughout these instructions we will assume the following:
|
|||
h2. Preliminary steps
|
||||
|
||||
In general, when deploying a mongrel cluster, none of the mongrel servers will
|
||||
be listening on a privleged port. This is nice, we don't have to run mongrel as
|
||||
be listening on a privileged port. This is nice, we don't have to run mongrel as
|
||||
root, therefore we should create a user for mongrel to run as:
|
||||
<pre><code>
|
||||
$ sudo /usr/sbin/adduser -r mongrel
|
||||
|
@ -55,7 +55,7 @@ the log directory of your app has to be writable by the *mongrel* user:
|
|||
|
||||
h2. Mongrel Cluster Setup
|
||||
|
||||
With mongrel working and our webapp directory prepared we can procede with the
|
||||
With mongrel working and our webapp directory prepared we can proceed with the
|
||||
mongrel_cluster configuration step:
|
||||
<pre><code>
|
||||
$ sudo mongrel_rails cluster::configure -e production -p 8000 -N 3 \
|
||||
|
@ -72,7 +72,7 @@ Checking our host on ports 8000, 8001, and 8002 we should now be able to see our
|
|||
test application. We can stop all of those mongrels with
|
||||
@sudo mongrel_rails cluster::stop@.
|
||||
|
||||
h2. On Boot Inititialization Setup
|
||||
h2. On Boot Initialization Setup
|
||||
|
||||
At this point, mongrel and mongrel_cluster are setup and working with our sample
|
||||
webapp. Ultimately, we want this cluster to start on boot. Fortunately,
|
||||
|
@ -111,7 +111,7 @@ for several of the other deployment guides.
|
|||
<hr>
|
||||
|
||||
fn1. Thanks to "Bradley Taylor":http://fluxura.com/ for writing
|
||||
mongrel_cluster and recent improvements in its startup capabilites.
|
||||
mongrel_cluster and recent improvements in its startup capabilities.
|
||||
|
||||
fn2. @adduser -r@ is a RedHat-centric way of creating a system account. For
|
||||
Debian-ish distributions replace that with @adduser --system mongrel@.
|
||||
|
|
|
@ -132,7 +132,7 @@ end
|
|||
</code>
|
||||
</pre>
|
||||
|
||||
And the acompanying view, app/views/test/index.rhtml:
|
||||
And the accompanying view, app/views/test/index.rhtml:
|
||||
|
||||
<pre>
|
||||
<h1>test</h1>
|
||||
|
|
|
@ -275,7 +275,7 @@ module Mongrel
|
|||
# look at the client's allowed response types and then gzip
|
||||
# compress anything that is going out.
|
||||
#
|
||||
# Valid option is :always_deflate => false which tells the handler to
|
||||
# Valid option is :always_deflate => false which tells the handler to
|
||||
# deflate everything even if the client can't handle it.
|
||||
class DeflateFilter < HttpHandler
|
||||
HTTP_ACCEPT_ENCODING = "HTTP_ACCEPT_ENCODING"
|
||||
|
@ -363,28 +363,28 @@ module Mongrel
|
|||
|
||||
def describe_listener
|
||||
results = ""
|
||||
results << "<h1>Listener #{listener.host}:#{listener.port}</h1>"
|
||||
results << table("settings", [
|
||||
["host",listener.host],
|
||||
["port",listener.port],
|
||||
["timeout",listener.timeout],
|
||||
["workers max",listener.num_processors],
|
||||
])
|
||||
results << "<h1>Listener #{listener.host}:#{listener.port}</h1>"
|
||||
results << table("settings", [
|
||||
["host",listener.host],
|
||||
["port",listener.port],
|
||||
["timeout",listener.timeout],
|
||||
["workers max",listener.num_processors],
|
||||
])
|
||||
|
||||
if @stats
|
||||
results << "<h2>Statistics</h2><p>N means the number of samples, pay attention to MEAN, SD, MIN and MAX."
|
||||
results << "<pre>#{@stats.dump}</pre>"
|
||||
end
|
||||
if @stats
|
||||
results << "<h2>Statistics</h2><p>N means the number of samples, pay attention to MEAN, SD, MIN and MAX."
|
||||
results << "<pre>#{@stats.dump}</pre>"
|
||||
end
|
||||
|
||||
results << "<h2>Registered Handlers</h2>"
|
||||
uris = listener.classifier.handler_map
|
||||
results << table("handlers", uris.map {|uri,handlers|
|
||||
[uri,
|
||||
results << "<h2>Registered Handlers</h2>"
|
||||
uris = listener.classifier.handler_map
|
||||
results << table("handlers", uris.map {|uri,handlers|
|
||||
[uri,
|
||||
"<pre>" +
|
||||
handlers.map {|h| h.class.to_s }.join("\n") +
|
||||
"</pre>"
|
||||
]
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
results
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue