From d20fd9b411869380b949743b3a479fdfb75b329d Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Thu, 25 Mar 2010 20:02:18 -0400 Subject: [PATCH] Fix example config in docs. --- doc/htdocs/configuration.html | 4 ++-- doc/htdocs/usage.html | 14 +++++++------- doc/site/configuration.rst | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/htdocs/configuration.html b/doc/htdocs/configuration.html index b0b8787c..b29d8740 100644 --- a/doc/htdocs/configuration.html +++ b/doc/htdocs/configuration.html @@ -69,9 +69,9 @@ tmp_upload_dir = None # Set path used to store temporary uploads after_fork=lambda server, worker: server.log.info( "Worker spawned (pid: %s)" % worker.pid), -before_fork=lambda server, worker: True, +before_fork=lambda server, worker: True -before_exec=lambda server: server.log.info("Forked child, reexecuting" +before_exec=lambda server: server.log.info("Forked child, reexecuting")
diff --git a/doc/htdocs/usage.html b/doc/htdocs/usage.html index 8e1d772f..a3423ef8 100644 --- a/doc/htdocs/usage.html +++ b/doc/htdocs/usage.html @@ -59,9 +59,9 @@

Thirty seconds to launch the example application packaged with Gunicorn:

 $ cd /path/to/gunicorn/examples/
-$ gunicorn --workers=2 test:application
+$ gunicorn --workers=2 test:app
 
-

The module test:application specifies the complete module name and WSGI callable. You can replace it with anything that is available on your PYTHONPATH like such:

+

The module test:app specifies the complete module name and WSGI callable. You can replace it with anything that is available on your PYTHONPATH like such:

 $ cd ~/
 $ gunicorn --workers=12 awesomeproject.wsgi.main:main_app
@@ -99,13 +99,13 @@ Options:
 

Django Projects

-

Django projects can be handled easily by Gunicorn using the gunicorn_django command:

+

Django projects can be handled easily by Gunicorn using the gunicorn_django command:

 $ cd $yourdjangoproject
 $ gunicorn_django --workers=2
 
-

But you can also use the run_gunicorn admin command like the other management.py commands.

-

Add "gunicorn" to INSTALLED_APPS in your settings file:

+

But you can also use the run_gunicorn admin command like the other management.py commands.

+

Add "gunicorn" to INSTALLED_APPS in your settings file:

 INSTALLED_APPS = (
     ...
@@ -119,12 +119,12 @@ python manage.py run_gunicorn
 

Paste-compatible projects

-

For Paste compatible projects (Pylons, TurboGears 2, ...) use the gunicorn_paste command:

+

For Paste compatible projects (Pylons, TurboGears 2, ...) use the gunicorn_paste command:

 $ cd $yourpasteproject
 $ gunicorn_paste --workers=2 development.ini
 
-

To use the paster command add a sever section for Gunicorn:

+

To use the paster command add a sever section for Gunicorn:

 [server:main]
 use = egg:gunicorn#main
diff --git a/doc/site/configuration.rst b/doc/site/configuration.rst
index cac58032..ee1b421c 100644
--- a/doc/site/configuration.rst
+++ b/doc/site/configuration.rst
@@ -26,9 +26,9 @@ Example gunicorn.conf.py
     after_fork=lambda server, worker: server.log.info(
             "Worker spawned (pid: %s)" % worker.pid),
         
-    before_fork=lambda server, worker: True,
+    before_fork=lambda server, worker: True
 
-    before_exec=lambda server: server.log.info("Forked child, reexecuting"
+    before_exec=lambda server: server.log.info("Forked child, reexecuting")
 
 Parameter Descriptions
 ----------------------
@@ -73,4 +73,4 @@ user:
     The user as which worker processes will by launched.
 
 tmp_upload_dir:
-    Set the path used to store temporarily the body of the request.
\ No newline at end of file
+    Set the path used to store temporarily the body of the request.