summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-03-27 12:55:21 +0100
committerLinnnus <[email protected]>2024-03-27 12:55:21 +0100
commitc094c3cb3ffcfa03cfa3e4780fa7e19a93e4d2c0 (patch)
tree7abc50021d44e626f91a0acf5cef97799dc6222c /app.py
parent2729f53fd3b0c074234b355619a849792b5070a2 (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.
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 3 insertions, 2 deletions
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