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
--reload not working with Quart #16
Comments
Could you show the full command you use with |
Unfortunately there is no trace. Here's the full message.
I'm using a virtual env, in this case pipenv, and looking at that error it seems the --reload flag is attempting to be interpreted by Python.exe and being rejected. |
I think I fixed this in bb6989d, could you try that? |
Confirmed, when I edit that line into my local copy of that file it works. Nice job! |
@McSpidey May I ask you to try it with multiple workers? Is this supported on Windows? for example:
|
@marodev reloading isn't supported with multiple workers. Reloading is a development feature, whereas multiple workers is a production feature so I haven't seen a need for them to work together. |
@pgjones I should have been more precise. I was wondering if hypercorn works with multiple workers on Windows or if that feature is only supported on Unix. That’s why I didn’t provide the reload flag in my example. However, I just read that there is an issue and it doesn't seem to work. |
I see, it should work. If it isn't it would be good to see any errors (or why you think it isn't). |
I've been trying to get Hypercorn + Quart autoreloading on code change working and think I've found a bug.
The Hypercorn usage doc suggests the correct flag is "--reload"
https://github.com/pgjones/hypercorn/blob/master/docs/usage.rst
When I use this it starts fine but the moment I edit the Quart source code file and save it Hypercorn crashes with this error:
"unknown option --reload"
I've checked the Quart docs (https://pgjones.gitlab.io/quart/source/quart.app.html
) and it suggests the internal flag may be "use_reloader", however if I try that with Hypercorn it doesn't start, giving this error.
"hypercorn: error: unrecognized arguments: --use_reloader"
In case it was a mismatch between versions I just tried uninstalling and re-installing both Quart and Hypercorn but there was no change. What's the best way to go about this?
The text was updated successfully, but these errors were encountered: