DashMachine/run.py
Ross Mountjoy e1d4b9f23e v0.5
- users are now managed through config.ini
- no more alembic, completely dynamic database, created on startup
- performance fixes
2020-03-20 17:56:53 -04:00

20 lines
427 B
Python
Executable File

#!/usr/bin/env python3
import os
root_folder = os.path.dirname(__file__)
db_file_path = os.path.join(root_folder, "dashmachine", "user_data", "site.db")
try:
os.remove(db_file_path)
except FileNotFoundError:
pass
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)