forked from Decentrala/taskmanager
fix init_db file and run.py
This commit is contained in:
parent
d9a73a6fd9
commit
52866f9c84
@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
from flaskapp import db
|
||||
from taskmanager import db, app
|
||||
|
||||
print('[i] Trying to create databse...')
|
||||
try:
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
print('[+] Success you can proceed with deployment!')
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user