I’ll paste here my response to #1346 and would like everyone to discuss using this tool, if possible
@abuckenheimer @yunstanford I know I have made some tools in the past that were way more complex because they required either binary or byte-compiled code to be hot-replaced, either in Windows or Linux or (whatever the name of that embed machine made in hell). This should not be complicated, with my first idea being wrapping the server stuff and launching a second process with
multiprocessing.spawn, that would certainly work on Linux and Windows. The main process would watch for file changes and restart (kill+spawn) the new server on some events (either by using
inotify in Linux or simple polling in Windows, though I think there might be something better / already done for that).
Also, I agree with the idea that this should be put into a plugin and not within Sanic since it is just a tool, not a production specific feature.