Skip to content

Commit

Permalink
Update Snippets.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
unbit committed Feb 2, 2014
1 parent 5559688 commit 8feda48
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Snippets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,24 @@ and this for /admin
route-label = https
route-if-not = equal:${HTTPS};on redirect-permanent:https://${HTTP_HOST}${REQUEST_URI}
Python Auto-reloading (DEVELOPMENT-ONLY !!!)
--------------------------------------------

In production you can monitor file/directory changes for triggering reloads (touch-reload, fs-reload...).

During development having a monitor for all of the loaded/used python modules can be handy. But please use it only during development.

The check is done by a thread that scans the modules list with the specified frequency:

.. code-block:: ini
[uwsgi]
...
py-autoreload = 2
will check for python modules changes every 2 seconds and eventually restart the instance.

Hey, use it only in development...

0 comments on commit 8feda48

Please sign in to comment.