This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Chris Dent (author)
Thu Nov 19 12:11:48 -0800 2009
commit 9eb608a46ad2375ba501acefe0928718c9379e73
tree 9a03cfed46b1bd2582c8f62fc883faea2e003108
parent 2ae4d8b9e2337e80d0abbb664b803c868be90812
tree 9a03cfed46b1bd2582c8f62fc883faea2e003108
parent 2ae4d8b9e2337e80d0abbb664b803c868be90812
tiddlyweb-plugins / reloader
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README | ||
| |
reloader.py | ||
| |
wserver.py |
reloader/README
reloader and wserver provide two different ways to automatically reload code into the CherryPY WSGI server when TiddlyWeb (and related) code has changed. Both are for use with the builtin CherryPy server (usually started with twanager server) and should _not_ be used with other servers, such Apache, CGI, spwaning, etc. reloader was developed first, based on similar tools in the CherryPy package and Paste, especially Paste. It is a plugin that is added to system_plugins. 'twanager server' is run the same as before. reloader starts up a thread that monitors the files in sys.modules, plus extras that may be added by configuration. When there are changes, the thread causes the process to exec itself. This works on Linux but not on OS X because OS X does not let a process with multiple active threads do an exec. So wserver was born. It is a plugin that is added to twanager_plugins, adding a 'wserver' command taking the same (optional) arguments as the 'server' command. When run, a child process is spawned, running 'twanager server'. The parent server remains, watching the files in sys.modules using the same code as reloader. When there is a change, the parent kills its child and respawns a 'twanager server'. Further details in the code.








