Use standard way of running debug/local services

This commit is contained in:
Ludovic Chabant 2019-01-11 07:01:35 +00:00 committed by Drew DeVault
parent d8764a3a96
commit 522e4dc4d1
1 changed files with 3 additions and 10 deletions

13
run.py
View File

@ -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)