From 1bf417e4c1b2865f44357a61ca16fadde310077e Mon Sep 17 00:00:00 2001
From: Martin <martin.frlin@gmail.com>
Date: Tue, 06 Dec 2016 10:49:38 +0100
Subject: [PATCH] Changed 'host' and 'port' configuration to a new 'listen' style that is now supported by waitress server.

---
 docs/narr/project.rst |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 6c42881..ec26b88 100644
--- a/docs/narr/project.rst
+++ b/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).

--
Gitblit v1.9.3