2021-07-05 19:37:05 +02:00
|
|
|
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2021-06-12 10:06:40 +02:00
|
|
|
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")
|
|
|
|
|
2023-08-24 14:25:22 +02:00
|
|
|
serve(app, host="0.0.0.0", port=5000, threads=20)
|