Document run() host defaulting to SERVER_NAME

This commit is contained in:
John Bodley 2017-03-11 09:59:34 -08:00 committed by Adrian
parent 7a5e8ef38e
commit 46e8427d81

View file

@ -813,7 +813,8 @@ class Flask(_PackageBoundObject):
:param host: the hostname to listen on. Set this to ``'0.0.0.0'`` to
have the server available externally as well. Defaults to
``'127.0.0.1'``.
``'127.0.0.1'`` or the host in the ``SERVER_NAME`` config
variable if present.
:param port: the port of the webserver. Defaults to ``5000`` or the
port defined in the ``SERVER_NAME`` config variable if
present.