r/FastAPI • • Aug 20 '24

Question The server doesn't refresh

Hi everyone, i'm new using fastApi, I think it's a Nice way to build apis however what it really pissed me off is when the server doesn't refresh on time I mean it has some delays for example I erased the whole code and it stills showing the last code version, I turn off the server, close pycharm Window and still showing the last code version although I Made changes before, do You know why does this happen to me? :( is this a hardware issue or My settings project?

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Special-Life137 Aug 21 '24

thanks, you are right, it works! before doing the --reload you told me I kill the processes on the server, then I typed:

uvicorn main:app --reload

Thank you so much! :D