-
Notifications
You must be signed in to change notification settings - Fork 6
Reload when staticsite code changes #44
Copy link
Copy link
Open
Labels
Description
Currently staticsite show/serve don't trigger a reload when staticsite's code changes.
/usr/lib/python3/dist-packages/tornado/autoreload.py:_reload_on_update can be a good example of how to list source locations for the current program.
For serve, just doing an exec of sys.argv would be enough. For show, this would cause the new process to bind to a different port, unless --port was used.
Alternatively, we can keep the server socket open and let the new process inherit and use it.
Reactions are currently unavailable