reload-dir
specified, but default dir(cwd) still been watching
#1833
Replies: 2 comments 1 reply
-
I'm also running into this. The implementation just doesn't make any sense to me. My command
For weeks I'm trying to get uvicorn to only watch two directories. I tried debugging it step by step but I'm failing. In the output it even tells me, that it will only watch those two directories:
And then it discards this info and Docs and code seem to disagree here, please take another look. |
Beta Was this translation helpful? Give feedback.
-
I only noticed this because it's causing me to run out of inotify handles. I guess I need to chdir into the directory rather than relying on the --app-dir and --reload-dir options, which do not work as advertised. This is definitely a real issue not just a "potential issue". |
Beta Was this translation helpful? Give feedback.
-
Yes, I know it's a normal behavior. But the document said:
I just want to specify a dir and DO NOT use the default dir(cwd), how can I do that?
Beta Was this translation helpful? Give feedback.
All reactions