diff --git a/doc/htdocs/configuration.html b/doc/htdocs/configuration.html index a2aeecaa..dab7da07 100644 --- a/doc/htdocs/configuration.html +++ b/doc/htdocs/configuration.html @@ -46,57 +46,58 @@
This manual to setup Gunicorn in production and use the configuration file.
Gunicorn 0.5 introduced the ability to read configuration from a file. Gunicorn will either look for "gunicorn.conf.py" in the current directory or a file referred through the -c flag.
-See github.com/benoitc/gunicorn/blob/master/examples/gunicorn.conf.py.sample for an example of configuration file.
-Default configuration settings are:
+Gunciorn 0.5 introduced the ability to use a Python configuration file. Gunicorn will look for gunicorn.conf.py in the current working directory or what ever path is specified on the command line with the -c option.
+A configuration file with default settings would look like this:
-bind='127.0.0.1:8000',
-daemon=False,
-debug=False,
-logfile='-',
-loglevel='info',
-pidfile=None,
-workers=1,
-umask=0,
-user=None,
-group=None,
+bind = "127.0.0.1:8000" # Or "unix:/tmp/gunicorn.sock"
+daemon = False # Whether work in the background
+debug = False # Some extra logging
+logfile = "-" # Name of the log file
+loglevel = "info" # The level at which to log
+pidfile = None # Path to a PID file
+workers = 1 # Number of workers to initialize
+umask = 0 # Umask to set when daemonizing
+user = None # Change process owner to user
+group = None # Change process group to group
-after_fork=lambda server, worker: server.log.info(
- "worker=%s spawned pid=%s" % (worker.id, str(worker.pid))),
+def after_fork(server, worker):
+ fmt = "worker=%s spawned pid=%s"
+ server.log.info(fmt % (worker.id, worker.pid))
-before_fork=lambda server, worker: server.log.info(
- "worker=%s spawning" % worker.id),
+def before_fork(server, worker):
+ fmt = "worker=%s spawning"
+ server.log.info(fmt % worker.id)
-before_exec=lambda server: server.log.info("forked child, reexecuting")
+def before_exec(server):
+ serer.log.info("Forked child, reexecuting.")
gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and nothing else.
-This is a port of Unicorn (http://unicorn.bogomips.org/) in Python. Meet us on #gunicorn irc channel on Freenode.
-Gunicorn is under MIT License. see LICENSE file for more details.
+Green Unicorn (gunicorn) is an HTTP/WSGI Server for UNIX designed to serve fast clients and nothing else.
+This is a port of Unicorn in Python. Meet us on the #gunicorn IRC channel on Freenode.
+Gunicorn is released under the MIT License. See the LICENSE for more details.
This is a manual for installing Gunicorn and its dependencies.
-Gunicorn requires Python 2.x superior to 2.5 to work. Python 3.x will be supported soon.
+To install Gunicorn using easy_install you must make sure you have a recent version of setuptools installed (as of this writing, 0.6c6 (0.6a9 on windows) or later):
+If you don't already have easy_install available you'll want to download and run the ez_setup.py script:
$ curl -O http://peak.telecommunity.com/dist/ez_setup.py $ sudo python ez_setup.py -U setuptools @@ -61,25 +66,23 @@ $ sudo python ez_setup.py -U setuptools$ sudo easy_install -U gunicorn+
To install Gunicorn from source, simply use the normal procedure for installing any Python package. Since Gunicorn uses setuptools, all dependencies (including setuptools itself) will be automatically acquired and installed for you as appropriate.
-You could download latest sources from Github Downloads
-Or fetch them with git. Therefore we have to install git and then run:
+You can install Gunicorn from source as simply as you would install any other Python package. Gunicorn uses setuptools which will automatically fetch all dependencies (including setuptools itself).
+You can download a tarball of the latest sources from GitHub Downloads or fetch them with git:
$ git clone git://github.com/benoitc/gunicorn.git
$ python setup.py install-
If you're using a git clone, it's recommended to use the setuptools develop command, which will simply activate Gunicorn directly from your source directory. This way you can do a hg fetch or make changes to the source code without re-installing every time:
+If you've cloned the git repository, its highly recommended that you use the develop command which will allow you to use Gunicorn from the source directory. This will allow you to keep up to date with development on GitHub as well as make changes to the source:
$ python setup.py developdiff --git a/doc/htdocs/usage.html b/doc/htdocs/usage.html index 8cbcd67d..a46a69e6 100644 --- a/doc/htdocs/usage.html +++ b/doc/htdocs/usage.html @@ -2,7 +2,7 @@ -