Skip to content

Commit

Permalink
add changelog for #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed May 2, 2018
1 parent bd60103 commit daae543
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
unreleased
==========

- Allow overriding the default monitor lookup by specifying the
``HUPPER_DEFAULT_MONITOR`` environment variable as a Python dotted-path
to a monitor factory. For example,
``HUPPER_DEFAULT_MONITOR=hupper.polling.PollingFileMonitor``.
See https://github.com/Pylons/hupper/pull/29

1.1 (2018-03-29)
================

Expand Down
13 changes: 13 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ new files to watch. This can be done by acquiring a reference to the
process. The :func:`hupper.start_reloader` function will return the instance
or :func:`hupper.get_reloader` can be used as well.
Overriding the default file monitor
-----------------------------------
By default, ``hupper`` will auto-select the best file monitor based on what
is available. The preferred order is ``watchdog`` then ``polling``. If
``watchdog`` is installed but you do not want to use it for any reason, you
may override the default by specifying the monitor you wish to use instead in
the ``HUPPER_DEFAULT_MONITOR`` environment variable. For example:
.. code:: bash
$ HUPPER_DEFAULT_MONITOR=hupper.polling.PollingFileMonitor hupper -m foo
More Information
================
Expand Down

0 comments on commit daae543

Please sign in to comment.