Martin
2016-12-06 1bf417e4c1b2865f44357a61ca16fadde310077e
Changed 'host' and 'port' configuration to a new 'listen' style that is now supported by waitress server.
63 files modified
198 ■■■■■ changed files
docs/narr/MyProject/development.ini 3 ●●●● patch | view | raw | blame | history
docs/narr/MyProject/production.ini 3 ●●●● patch | view | raw | blame | history
docs/narr/project.rst 11 ●●●● patch | view | raw | blame | history
docs/narr/startup.rst 4 ●●●● patch | view | raw | blame | history
docs/quick_tour/package/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tour/sqla_demo/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tour/sqla_demo/production.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/authentication/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/authorization/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/databases/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/debugtoolbar/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/forms/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/functional_testing/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/ini/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/jinja2/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/json/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/logging/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/more_view_classes/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/request_response/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/retail_forms/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/routing/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/scaffolds/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/scaffolds/production.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/sessions/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/static_assets/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/templating/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/unit_testing/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/view_classes/development.ini 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/views/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/installation/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/installation/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/tests/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/tests/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/authentication/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/authentication/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/authorization/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/authorization/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/basiclayout/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/basiclayout/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/installation/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/installation/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/models/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/models/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/tests/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/tests/production.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/views/development.ini 3 ●●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/views/production.ini 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/alchemy/development.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/alchemy/production.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/starter/development.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/starter/production.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/zodb/development.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/scaffolds/zodb/production.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/tests/test_scaffolds/fixture_scaffold/development.ini_tmpl 3 ●●●● patch | view | raw | blame | history
pyramid/tests/test_scaffolds/fixture_scaffold/production.ini_tmpl 3 ●●●● patch | view | raw | blame | history
docs/narr/MyProject/development.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/narr/MyProject/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/narr/project.rst
@@ -295,16 +295,15 @@
Access is restricted such that only a browser running on the same machine as
Pyramid will be able to access your Pyramid application.  However, if you want
to open access to other machines on the same network, then edit the
``development.ini`` file, and replace the ``host`` value in the
``[server:main]`` section, changing it from ``127.0.0.1`` to ``0.0.0.0``.  For
``development.ini`` file, and replace the ``listen`` value in the
``[server:main]`` section, changing it from ``127.0.0.1:6543`` to ``0.0.0.0:6543``.  For
example:
.. code-block:: ini
   [server:main]
   use = egg:waitress#main
   host = 0.0.0.0
   port = 6543
   listen = 0.0.0.0:6543
Now when you use ``pserve`` to start the application, it will respond to
requests on *all* IP addresses possessed by your system, not just requests to
@@ -320,8 +319,8 @@
You can change the port on which the server runs on by changing the same
portion of the ``development.ini`` file.  For example, you can change the
``port = 6543`` line in the ``development.ini`` file's ``[server:main]``
section to ``port = 8080`` to run the server on port 8080 instead of port 6543.
``listen = 127.0.0.1:6543`` line in the ``development.ini`` file's ``[server:main]``
section to ``listen = 127:0.0.1:8080`` to run the server on port 8080 instead of port 6543.
You can shut down a server started this way by pressing ``Ctrl-C`` (or
``Ctrl-Break`` on Windows).
docs/narr/startup.rst
@@ -130,8 +130,8 @@
#. ``pserve`` starts the WSGI *server* defined within the ``[server:main]``
   section.  In our case, this is the Waitress server (``use =
   egg:waitress#main``), and it will listen on all interfaces (``host =
   127.0.0.1``), on port number 6543 (``port = 6543``). The server code itself
   egg:waitress#main``), and it will listen on all interfaces (``listen =
   127.0.0.1:6543``), on port number 6543. The server code itself
   is what prints ``serving on http://127.0.0.1:6543``. The server serves the
   application, and the application is running, waiting to receive requests.
docs/quick_tour/package/development.ini
@@ -25,8 +25,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/quick_tour/sqla_demo/development.ini
@@ -27,8 +27,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/quick_tour/sqla_demo/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/quick_tutorial/authentication/development.ini
@@ -7,5 +7,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/authorization/development.ini
@@ -7,5 +7,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/databases/development.ini
@@ -9,8 +9,7 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
# Begin logging configuration
docs/quick_tutorial/debugtoolbar/development.ini
@@ -5,5 +5,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/forms/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/functional_testing/development.ini
@@ -5,5 +5,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/ini/development.ini
@@ -3,5 +3,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/jinja2/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/json/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/logging/development.ini
@@ -6,8 +6,7 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
# Begin logging configuration
docs/quick_tutorial/more_view_classes/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/request_response/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/retail_forms/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/routing/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/scaffolds/development.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/quick_tutorial/scaffolds/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/quick_tutorial/sessions/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/static_assets/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/templating/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/unit_testing/development.ini
@@ -5,5 +5,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/view_classes/development.ini
@@ -6,5 +6,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/quick_tutorial/views/development.ini
@@ -5,5 +5,4 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
docs/tutorials/wiki/src/authorization/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/authorization/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki/src/basiclayout/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/basiclayout/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki/src/installation/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/installation/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki/src/models/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/models/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki/src/tests/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/tests/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki/src/views/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki/src/views/production.ini
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/authentication/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/authentication/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/authorization/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/authorization/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/basiclayout/development.ini
@@ -27,8 +27,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/basiclayout/production.ini
@@ -16,8 +16,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/installation/development.ini
@@ -27,8 +27,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/installation/production.ini
@@ -16,8 +16,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/models/development.ini
@@ -27,8 +27,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/models/production.ini
@@ -16,8 +16,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/tests/development.ini
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/tests/production.ini
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
docs/tutorials/wiki2/src/views/development.ini
@@ -27,8 +27,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
list = 127.0.0.1:6543
###
# logging configuration
docs/tutorials/wiki2/src/views/production.ini
@@ -16,8 +16,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
list = 0.0.0.0:6543
###
# logging configuration
pyramid/scaffolds/alchemy/development.ini_tmpl
@@ -26,8 +26,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
pyramid/scaffolds/alchemy/production.ini_tmpl
@@ -16,8 +16,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
pyramid/scaffolds/starter/development.ini_tmpl
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
pyramid/scaffolds/starter/production.ini_tmpl
@@ -18,8 +18,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
pyramid/scaffolds/zodb/development.ini_tmpl
@@ -29,8 +29,7 @@
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543
listen = 127.0.0.1:6543
###
# logging configuration
pyramid/scaffolds/zodb/production.ini_tmpl
@@ -24,8 +24,7 @@
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
###
# logging configuration
pyramid/tests/test_scaffolds/fixture_scaffold/development.ini_tmpl
@@ -11,8 +11,7 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
# Begin logging configuration
pyramid/tests/test_scaffolds/fixture_scaffold/production.ini_tmpl
@@ -10,8 +10,7 @@
[server:main]
use = egg:pyramid#wsgiref
host = 0.0.0.0
port = 6543
listen = 0.0.0.0:6543
# Begin logging configuration