diff options
| author | Michael Merickel <mmerickel@users.noreply.github.com> | 2016-11-20 17:26:39 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-20 17:26:39 -0600 |
| commit | 0c1c8bfe1001d7fdf6f1c6d9a19435b8a46f7fc9 (patch) | |
| tree | 2119c8387cfd08eaa0b2357d2eba1045726424e0 /docs/narr | |
| parent | 3c5db5881058b730d9ce5ad0e49667c28ad63e25 (diff) | |
| parent | 067ce0528a4c108e502c968b0865d213dbdda271 (diff) | |
| download | pyramid-0c1c8bfe1001d7fdf6f1c6d9a19435b8a46f7fc9.tar.gz pyramid-0c1c8bfe1001d7fdf6f1c6d9a19435b8a46f7fc9.tar.bz2 pyramid-0c1c8bfe1001d7fdf6f1c6d9a19435b8a46f7fc9.zip | |
Merge pull request #2805 from mmerickel/pserve-reloader-revamp
pserve reloader revamp
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/project.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index 71bd176f6..6c42881f4 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -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. |
