You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
ofsys.argv
would be enough. Forshow
, 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.
The text was updated successfully, but these errors were encountered: