From c094c3cb3ffcfa03cfa3e4780fa7e19a93e4d2c0 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 27 Mar 2024 12:55:21 +0100 Subject: 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. --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 3d36d99..bc1945d 100644 --- a/app.py +++ b/app.py @@ -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 -- cgit v1.2.3