How can I get Bottle to restart on file change?

Check out from the tutorial a section entitled “Auto Reloading”

During development, you have to restart the server a lot to test your
recent changes. The auto reloader can do this for you. Every time you
edit a module file, the reloader restarts the server process and loads
the newest version of your code.

This gives the following example:

from bottle import run
run(reloader=True)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)