DashMachine/run.py
2020-02-12 18:17:23 -05:00

19 lines
513 B
Python
Executable File

#!/usr/bin/env python3
import os
from dashmachine.paths import root_folder
os.system("python " + os.path.join(root_folder, "manage_db.py db stamp head"))
os.system("python " + os.path.join(root_folder, "manage_db.py db migrate"))
os.system("python " + os.path.join(root_folder, "manage_db.py db upgrade"))
from dashmachine import app
from dashmachine.main.utils import dashmachine_init
dashmachine_init()
if __name__ == "__main__":
app.run(debug=True, use_reloader=True, host="0.0.0.0", threaded=True)