~edwargix/git.sr.ht

e1f9059d7c2e61b3ff758edffdd79ba1dcd72a2c — Ludovic Chabant 7 years ago 25ff8ce
Use new way of running debug/local services
1 files changed, 3 insertions(+), 10 deletions(-)

M run.py
M run.py => run.py +3 -10
@@ 1,11 1,4 @@
from gitsrht.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("git.sr.ht", "debug-host"),
            port=cfgi("git.sr.ht", "debug-port"),
            debug=True)
    from srht.debug import run_service
    from gitsrht.app import app
    run_service(app)