Skip to content
Myr

Document run() host defaulting to SERVER_NAME

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Bodley · committed by Adrian · parent 7a5e8ef · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:flask/app.py+2 added-1 removed
811 unmodified lines
812 The default port is now picked from the ``SERVER_NAME`` variable.813814 :param host: the hostname to listen on. Set this to ``'0.0.0.0'`` to815 have the server available externally as well. Defaults to816 ``'127.0.0.1'``.816 ``'127.0.0.1'`` or the host in the ``SERVER_NAME`` config817 variable if present.818 :param port: the port of the webserver. Defaults to ``5000`` or the819 port defined in the ``SERVER_NAME`` config variable if820 present.821 :param debug: if given, enable or disable debug mode.
1187 unmodified lines