Use new way to run debug/local services

This commit is contained in:
Ludovic Chabant 2019-01-11 07:07:53 +00:00 committed by Drew DeVault
parent 0371fb9775
commit d4f8d5960e
1 changed files with 3 additions and 10 deletions

13
run.py
View File

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