Skip to content

Commit

Permalink
link to documentation on hupper
Browse files Browse the repository at this point in the history
fixes #2806
  • Loading branch information
mmerickel committed Nov 20, 2016
1 parent 451a0c0 commit ac62f95
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions docs/narr/project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1045,3 +1045,23 @@ Another good production alternative is :term:`Green Unicorn` (aka
mod_wsgi, although it depends, in its default configuration, on having a
buffering HTTP proxy in front of it. It does not, as of this writing, work on
Windows.

Automatically Reloading Your Code
---------------------------------

During development, it can be really useful to automatically have the
webserver restart when you make changes. ``pserve`` has a ``--reload`` switch
to enable this. It uses the
`hupper <http://docs.pylonsproject.org/projects/hupper/en/latest/>` package
to enable this behavior. When your code crashes, ``hupper`` will wait for
another change or the ``SIGHUP`` signal before restarting again.

inotify support
~~~~~~~~~~~~~~~

By default, ``hupper`` will poll the filesystem for changes to all python
code. This can be pretty inefficient in larger projects. To be nicer to your
hard drive, you should install the
`watchdog <http://pythonhosted.org/watchdog/>` package in development.
``hupper`` will automatically use ``watchdog`` to more efficiently poll the
filesystem.
3 changes: 2 additions & 1 deletion docs/tutorials/wiki/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ coverage.
Start the application
---------------------

Start the application.
Start the application. See :ref:`what_is_this_pserve_thing` for more
information on ``pserve``.

On UNIX
^^^^^^^
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorials/wiki2/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ working directory. This is an SQLite database with a single table defined in it
Start the application
---------------------

Start the application.
Start the application. See :ref:`what_is_this_pserve_thing` for more
information on ``pserve``.

On UNIX
^^^^^^^
Expand Down

0 comments on commit ac62f95

Please sign in to comment.