-
Notifications
You must be signed in to change notification settings - Fork 120
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
Is there a way to automatically reload modifications to main.py? #6
Comments
Yes, you can use the |
I saw the |
Can you give us some more details about how you're trying to run the
|
Hi Dustin, here is a video of what I am doing: https://drive.google.com/file/d/1BJx4Bmc2YN4sgLTKDRSbqo-EdX1TZomj/preview Is there any other detail that can help you? |
Hi @ilpersi, thanks for the very detailed video! One difference is that Flask/Werkzeug is using the "stat" reloader on your machine, but I'm using "fsevents" which comes from the watchdog package. It seems like what Flask uses varies from one platform to another. Could you try installing watchdog in your environment and see if that helps? Also if you could include the output of |
@di installing watchdog solves the issue! 🔝 👍 Here is my
I think that Flask version is also something that deserves more documentation: to stick with the cloud functions runtime I originally installed 1.0.2. and I updated to 1.1.1 after you posted your The video in the previous comment is shot with 1.1.1 and installing watchdog fixes the issue both with 1.0.2 and 1.1.1 (I tested them both). Thank you very much. |
* Adding watchdog dependency (#6). * Don't pin to a specific watchdog version * Require a more modern version of watchdog Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
FYI, once #15 is released, this will just be a flag ( |
I know that in standard Flask you can do this in the following way:
I've tried also with functions-framework with no luck: is there a possible workaround?
Thank you.
The text was updated successfully, but these errors were encountered: