Files
zbiorki_app/run_waitress.py
T

11 lines
262 B
Python

import os
from waitress import serve
from app import app, init_database_with_retry
if __name__ == '__main__':
init_database_with_retry(app, raise_on_failure=False)
port = int(os.environ.get("APP_PORT", 8080))
serve(app, host="0.0.0.0", port=port)