Steve Piercy
2017-05-13 6d8c4ddf0e9fded74f7aa66402b1de79732c6402
update narrative docs to align with source code
- per https://github.com/Pylons/pyramid/pull/3000#issuecomment-294565854

(cherry picked from commit b57460e)
2 files modified
16 ■■■■ changed files
docs/narr/project.rst 6 ●●●● patch | view | raw | blame | history
docs/narr/startup.rst 10 ●●●● patch | view | raw | blame | history
docs/narr/project.rst
@@ -332,7 +332,7 @@
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 ``listen`` value in the
``[server:main]`` section, changing it from ``127.0.0.1:6543 [::1]:6543`` to ``*:6543``
``[server:main]`` section, changing it from ``localhost:6543`` to ``*:6543``
(this is equivalent to ``0.0.0.0:6543 [::]:6543``).  For example:
.. code-block:: ini
@@ -356,8 +356,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
``listen = 127.0.0.1:6543 [::1]:6543`` line in the ``development.ini`` file's ``[server:main]``
section to ``listen = 127:0.0.1:8080 [::1]:8080`` to run the server on port 8080 instead of port 6543.
``listen = localhost:6543`` line in the ``development.ini`` file's ``[server:main]``
section to ``listen = localhost: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
@@ -10,12 +10,12 @@
    $ $VENV/bin/pserve development.ini
    Starting server in PID 16305.
    Serving on http://127.0.0.1:6543
    Serving on http://[::1]:6543
    Serving on http://localhost:6543
    Serving on http://localhost:6543
This chapter explains what happens between the time you press the "Return" key
on your keyboard after typing ``pserve development.ini`` and the time the line
``serving on http://127.0.0.1:6543`` is output to your console.
on your keyboard after typing ``pserve development.ini`` and the time the lines
``Serving on http://localhost:6543`` are output to your console.
.. index::
   single: startup process
@@ -133,7 +133,7 @@
   section.  In our case, this is the Waitress server (``use =
   egg:waitress#main``), and it will listen on all interfaces on port 6543
   for both IPv4 and IPv6 (``listen = localhost:6543``). The server
   code itself is what prints ``serving on http://127.0.0.1:6543``. The server
   code itself is what prints ``Serving on http://localhost:6543``. The server
   serves the application, and the application is running, waiting to receive requests.
.. seealso::