I googled and found a hint that I should set debug mode in Tornado so that it could reload files automatically on update. But I didn't find an exact string to insert. I tried different combinations similar to this application.settings = {"Debug": True}
but it doesn't help.
Here's a tweaked example from the tornado site:
For those who like the
debug=True
option and using Tornado-multiprocess the following error will be raised:This is because
debug=True
loadIOLoop
and it cannot be loaded twice.According to the documentation
So when using
debug=True
Tornado also sets ( for convenience ) another flag:autoreload=True
which "watch" for changes and reload the server.The
autoreload
option is the one that cannot be turned on when using multi-process. So you need to configure it like so: