Files
zbiorki_app/run_waitress.py
Mateusz Gruszczyński e9db945bb4 przebudowa systemu
2025-08-28 10:27:06 +02:00

11 lines
289 B
Python

import os
from app import app, db, create_admin_account
from waitress import serve
if __name__ == '__main__':
with app.app_context():
db.create_all()
create_admin_account()
port = int(os.environ.get("APP_PORT", 8080))
serve(app, host="0.0.0.0", port=port)