diff options
author | Linnnus <[email protected]> | 2024-03-27 12:55:21 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-27 12:55:21 +0100 |
commit | c094c3cb3ffcfa03cfa3e4780fa7e19a93e4d2c0 (patch) | |
tree | 7abc50021d44e626f91a0acf5cef97799dc6222c | |
parent | 2729f53fd3b0c074234b355619a849792b5070a2 (diff) |
Run server in debug mode
This commit enables various debug features in the Bottle framework which
are useful for development.
This commit should be reverted before production deployment. Doing
otherwise poses a security threat.
-rw-r--r-- | app.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -from bottle import Bottle, run, static_file +from bottle import Bottle, run, debug, static_file from bottle import jinja2_template as template app = Bottle() @@ -11,4 +11,5 @@ def hello(): def server_static(filename): return static_file(filename, root="./static/") -run(app, host='localhost', port=8080) +debug(True) +run(app, host='localhost', port=8080, reloader=True)
\ No newline at end of file |