Use production config, and resolve issue with postgres url format (Unsure why this only surfaced after recreation of app)

This commit is contained in:
Peter Stockings
2024-12-26 01:33:14 +11:00
parent 4a1655dd44
commit ef2529d56e
4 changed files with 14 additions and 6 deletions

View File

@@ -43,5 +43,9 @@ COPY --from=tailwind-builder /app/app/static/css/tailwind.css ./app/static/css/t
# Expose the port Flask will run on
EXPOSE 5000
# Set environment variables
ENV FLASK_ENV=production
ENV FLASK_CONFIG=ProductionConfig
# Command to run the Flask app
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:create_app()"]