Use correct app when running with waitress

This commit is contained in:
Maxim De Clercq 2023-04-20 02:33:36 +02:00
parent 7fad75fc08
commit a29d3a33be
No known key found for this signature in database
GPG key ID: D35643779C52BA70
2 changed files with 2 additions and 2 deletions

View file

@ -19,4 +19,4 @@ FROM development AS production
RUN pip install waitress RUN pip install waitress
CMD python app.py db upgrade && \ CMD python app.py db upgrade && \
python wsgi.py python waitress_wsgi.py

View file

@ -13,4 +13,4 @@ if __name__ == "__main__":
) )
app, app_mgr = create_app() app, app_mgr = create_app()
serve(app_mgr, host="0.0.0.0", port=8000) serve(app, host="0.0.0.0", port=8000)