Files
ki-backend/run_prod.py
T
2021-06-12 10:06:40 +02:00

11 lines
219 B
Python

from alembic import command
from waitress import serve
from app import app, migrate
with app.app_context():
config = migrate.get_config()
command.upgrade(config, "head")
serve(app, host="0.0.0.0", port=5000)