From 51ad80071ae9f2653dc007e69dbfcedf96c31fd3 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Thu, 20 Nov 2025 15:16:30 +0100 Subject: [PATCH] Ensure virtualenv binaries are on PATH in entrypoint script for consistent command execution --- backend/entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index 486127a..78f18c8 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -2,6 +2,13 @@ set -e echo "Starting Backend" +# Ensure the project's virtualenv binaries are on PATH so commands like +# 'uvicorn' work even when not prefixed by 'uv run'. This matches how uv +# installs the env into /app/.venv in our containers. +if [ -d "/app/.venv/bin" ]; then + export PATH="/app/.venv/bin:$PATH" +fi + # Apply database migrations # Avoid installing the project in editable mode (which tries to write egg-info) # when running inside a bind-mounted volume with restricted permissions.