-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto_reload support for Windows #1346
Comments
Today our reloader is completely dependant in the way POSIX works ... But I really think that a more generic approach is possible to make this behavior available for POSIX and Windows almost transparently, but I'll have to do some hard digging in there to see if my idea really works ... |
I took a quick look was surprised to find that the re-loader is only really dependent on posix for killing the existing server process and children and not to detect file changes. My guess is we could probably use something like psutil to make this more uniformly platform independent but not sure we'd want that as a dependency. |
This functionality could actually be put into a plugin. And current implementation is also a little bit error-prone. It'll certainly require more mature process management. |
@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 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. Please, let's continue this discussion on the community forums if possible 😉 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is incorrect, please respond with an update. Thank you for your contributions. |
@stale nope |
This would be really useful for us. We don't have an option to use Linux for development unfortunately
The text was updated successfully, but these errors were encountered: