mirror of https://git.sr.ht/~sircmpwn/man.sr.ht
Use standard way of running debug/local services
This commit is contained in:
parent
d8764a3a96
commit
522e4dc4d1
13
run.py
13
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)
|
||||
|
|
Loading…
Reference in New Issue