Actually, looking back on it, should I even be rel...
# general
g
Actually, looking back on it, should I even be relying on native tooling for features such as hot-reload when using Pants? For example when I build a fastapi server and run it with uvicorn, should I let uvicorn reload with a
--reload
flag or should I start the process with pants and let pants restart the process with a
--watch
or something else?
h
Yes, we recommend setting
restartable=True
on the binary target, and letting Pants handle the hot reloading
since it's already watching the filesystem
And in fact can do so more precisely than uvicorn can since it is fully aware of all the inputs that should invalidate the process
c
The pants flag btw is
--loop
🙂
👍 1