Document GUNICORN_CMD_ARGS (#1425)

This commit is contained in:
Hasan Ramezani 2017-01-13 12:38:52 +03:30 committed by Berker Peksag
parent ab444eed50
commit 3b853b0455
3 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,15 @@ able to be set from a configuration file. The setting name is what should be
used in the configuration file. The command line arguments are listed as well
for reference on setting at the command line.
.. note::
Settings can be specified by using environment variable
``GUNICORN_CMD_ARGS``. All avaiable command line arguments can be used.
For example, to specify the bind address and number of workers::
$ GUNICORN_CMD_ARGS="--bind=127.0.0.1 --workers=3" gunicorn app:app
.. versionadded:: 19.7
"""
ISSUE_URI = 'https://github.com/benoitc/gunicorn/issues/%s'
PULL_REQUEST_URI = 'https://github.com/benoitc/gunicorn/pull/%s'

View File

@ -64,6 +64,9 @@ Commonly Used Arguments
adjust the name of Gunicorn process as they appear in the process system
table (which affects tools like ``ps`` and ``top``).
Settings can be specified by using environment variable
:ref:`GUNICORN_CMD_ARGS <settings>`.
See :ref:`configuration` and :ref:`settings` for detailed usage.
.. _setproctitle: http://pypi.python.org/pypi/setproctitle/

View File

@ -10,6 +10,13 @@ able to be set from a configuration file. The setting name is what should be
used in the configuration file. The command line arguments are listed as well
for reference on setting at the command line.
.. note::
Settings can be specified by using environment variable
``GUNICORN_CMD_ARGS``. All avaiable command line arguments can be used.
For example, to specify the bind address and number of workers::
$ GUNICORN_CMD_ARGS="--bind=127.0.0.1 --workers=3" gunicorn app:app
Config File
-----------