diff --git a/doc/htdocs/deploy.html b/doc/htdocs/deploy.html index e9068009..427ef625 100644 --- a/doc/htdocs/deploy.html +++ b/doc/htdocs/deploy.html @@ -197,6 +197,16 @@ redirect_stderr=True +
+

Logging

+

Logging can be configured by using various flags detailed in the +configuration documentation or by creating a logging configuration file. +Send the USR1 signal to rotate logs if you are using the logrotate +utility:

+
+kill -USR1 $(cat /var/run/gunicorn.pid)
+
+
@@ -211,6 +221,7 @@ redirect_stderr=True
  • Supervisor
  • +
  • Logging
  • diff --git a/doc/htdocs/run.html b/doc/htdocs/run.html index e7797ce8..14a6eafc 100644 --- a/doc/htdocs/run.html +++ b/doc/htdocs/run.html @@ -86,6 +86,12 @@ directory.

    $ cd path/to/yourdjangoproject $ gunicorn_django --workers=2 +
    +

    Note

    +

    If you run Django 1.4 and superior, it's higly recommanded to +simply run your application with the WSGI interface using +the gunicorn command.

    +

    gunicorn_paster

    diff --git a/doc/site/run.rst b/doc/site/run.rst index cec9fb3a..044ae190 100644 --- a/doc/site/run.rst +++ b/doc/site/run.rst @@ -36,7 +36,7 @@ Example with test app:: $ cat test.py # -*- coding: utf-8 - # - # This file is part of gunicorn released under the MIT license. + # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. def app(environ, start_response): @@ -49,7 +49,7 @@ Example with test app:: ] start_response(status, response_headers) return iter([data]) - + $ gunicorn --workers=2 test:app gunicorn_django @@ -68,6 +68,11 @@ Example with your Django project:: $ cd path/to/yourdjangoproject $ gunicorn_django --workers=2 +.. note:: If you run Django 1.4 and superior, it's higly recommanded to + simply run your application with the `WSGI interface + `_ using + the `gunicorn`_ command. + gunicorn_paster +++++++++++++++