fix init db by adding context
This commit is contained in:
parent
22c6084863
commit
5491b763ac
@ -3,6 +3,7 @@ from flaskapp import db
|
|||||||
|
|
||||||
print('[i] Trying to create databse...')
|
print('[i] Trying to create databse...')
|
||||||
try:
|
try:
|
||||||
|
with app.app_context():
|
||||||
db.create_all()
|
db.create_all()
|
||||||
print('[+] Success you can proceed with deployment!')
|
print('[+] Success you can proceed with deployment!')
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user