fixed wsgi.py to match run.py
This commit is contained in:
parent
e1d4b9f23e
commit
7e2f204141
9
wsgi.py
9
wsgi.py
@ -1,5 +1,14 @@
|
||||
#!/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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user