Add documentation for the $PORT environment variable

This commit is contained in:
Kevin Michel 2020-01-29 17:01:27 +01:00
parent 73ae195068
commit c82996f791
2 changed files with 8 additions and 0 deletions

View File

@ -1164,6 +1164,10 @@ Multiple addresses can be bound. ex.::
will bind the `test:app` application on localhost both on ipv6
and ipv4 interfaces.
If the ``PORT`` environment variable is defined, the default
is ``['0.0.0.0:$PORT']``. If it is not defined, the default
is ``['127.0.0.1:8000']``.
.. _backlog:
backlog

View File

@ -579,6 +579,10 @@ class Bind(Setting):
will bind the `test:app` application on localhost both on ipv6
and ipv4 interfaces.
If the ``PORT`` environment variable is defined, the default
is ``['0.0.0.0:$PORT']``. If it is not defined, the default
is ``['127.0.0.1:8000']``.
"""