You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fosspay/app.py

16 lines
359 B

#!/usr/bin/env python3
from fosspay.app import app
from fosspay.config import _cfg, _cfgi, load_config
import os
app.static_folder = os.path.join(os.getcwd(), "static")
import os
import signal
signal.signal(signal.SIGHUP, lambda *args: load_config())
if __name__ == '__main__':
app.run(host=_cfg("debug-host"), port=_cfgi('debug-port'), debug=True)