mirror of
https://github.com/tildeclub/fosspay.git
synced 2026-06-17 06:19:24 +00:00
Source incoming :)
This commit is contained in:
16
app.py
Executable file
16
app.py
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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)
|
||||
|
||||
Reference in New Issue
Block a user