Forums

Reload webapp on file change

It seems this question has been asked in various forms before but I can't quite find an answer.

Served by a Flask webapp I have a text file that contains some markdown that will be edited either through the webapp ui or on the backend. It seems as though for the html generated from this markdown file to appear on my webapp I have to reload the entire app. Is that true? And if so how can I reload the webapp when this file changes? Scheduling appears to be the answer but severely degrades the realtime-ness I'm going for.

Thanks!

Seems you also asked the same question here