summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLudovic Chabant <ludovic@chabant.com>2019-01-11 07:01:35 +0000
committerDrew DeVault <sir@cmpwn.com>2019-01-13 09:31:10 -0500
commit522e4dc4d12792d5ce48e4a76fd400d04b8c8b18 (patch)
treef66202921b2e21d1ed0224dbaa1cc68ec03371cb
parentd8764a3a9697743ecdc70b1fd3660a43f73f0863 (diff)
Use standard way of running debug/local services
-rw-r--r--run.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/run.py b/run.py
index 89dd940..3ce0009 100644
--- a/run.py
+++ b/run.py
@@ -1,11 +1,4 @@
-from mansrht.app import app
-from srht.config import cfg, cfgi
-
-import os
-
-app.static_folder = os.path.join(os.getcwd(), "static")
-
if __name__ == '__main__':
- app.run(host=cfg("man.sr.ht", "debug-host"),
- port=cfgi("man.sr.ht", "debug-port"),
- debug=True)
+ from srht.debug import run_service
+ from mansrht.app import app
+ run_service(app)