Use new way of running debug/local services

This commit is contained in:
Ludovic Chabant 2019-01-15 02:49:37 +00:00 committed by Drew DeVault
parent 3b7deac13f
commit 285ece1958
1 changed files with 3 additions and 10 deletions

13
run.py
View File

@ -1,11 +1,4 @@
from buildsrht.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("builds.sr.ht", "debug-host"),
port=cfgi("builds.sr.ht", "debug-port"),
debug=True)
from srht.debug import run_service
from buildsrht.app import app
run_service(app)