From ca053a5fe1a7a8519fcace053d137acc338d0a08 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 16 Jun 2017 14:02:55 +0300 Subject: [PATCH] Add versionadded directive to reload_extra_files --- docs/source/settings.rst | 13 +++++++++++++ gunicorn/config.py | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index f0b2c463..aa21ebc9 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -320,6 +320,19 @@ because it consumes less system resources. In order to use the inotify reloader, you must have the ``inotify`` package installed. +.. _reload-extra-files: + +reload_extra_files +~~~~~~~~~~~~~~~~~~ + +* ``--reload-extra-file FILES`` +* ``[]`` + +Extends :ref:`reload` option to also watch and reload on additional files +(e.g., templates, configurations, specifications, etc.). + +.. versionadded:: 19.8 + .. _spew: spew diff --git a/gunicorn/config.py b/gunicorn/config.py index d777e9a3..adbe736c 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -878,8 +878,10 @@ class ReloadExtraFiles(Setting): validator = validate_list_of_existing_files default = [] desc = """\ - Extends --reload option to also watch and reload on additional files + Extends :ref:`reload` option to also watch and reload on additional files (e.g., templates, configurations, specifications, etc.). + + .. versionadded:: 19.8 """