forked from crunk/distribusi-verse
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
325 B
18 lines
325 B
3 years ago
|
def deploy():
|
||
|
"""Run deployment of database."""
|
||
|
from app import create_app, db
|
||
|
from flask_migrate import upgrade, migrate, init, stamp
|
||
|
|
||
|
app = create_app()
|
||
|
app.app_context().push()
|
||
|
db.create_all()
|
||
|
|
||
|
# migrate database to latest revision
|
||
|
init()
|
||
|
stamp()
|
||
|
migrate()
|
||
|
upgrade()
|
||
|
|
||
|
|
||
|
deploy()
|