mirror of https://github.com/tildeclub/fosspay.git
17 lines
359 B
Python
17 lines
359 B
Python
|
#!/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)
|
||
|
|