diff --git a/backend/app/services/card_position_service.py b/backend/app/services/card_position_service.py index 13eebf2..c9d60b1 100644 --- a/backend/app/services/card_position_service.py +++ b/backend/app/services/card_position_service.py @@ -78,7 +78,7 @@ class CardPositionService: for index, card in enumerate(dest_cards): if card is None: # This is where our moved card should go - moved_card = Card.query.get(moved_card_id) + moved_card = db.session.get(Card, moved_card_id) if moved_card: moved_card.pos = float(index) else: diff --git a/docker/Dockerfile b/docker/Dockerfile index e5d1ac6..fa2d5fb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,4 +43,8 @@ EXPOSE 8000 # Run with Gunicorn (Production WSGI Server) # --bind 0.0.0.0 makes it accessible outside the container -CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "wsgi:app"] \ No newline at end of file +# --access-logfile - sends access logs to stdout +# --error-logfile - sends error logs to stderr +# --capture-output ensures all output is captured +# --log-level info sets the logging level +CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--access-logfile", "-", "--error-logfile", "-", "--capture-output", "--log-level", "info", "wsgi:app"]