forked from cardosofelipe/pragma-stack
Ensure virtualenv binaries are on PATH in entrypoint script for consistent command execution
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
set -e
|
set -e
|
||||||
echo "Starting Backend"
|
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
|
# Apply database migrations
|
||||||
# Avoid installing the project in editable mode (which tries to write egg-info)
|
# Avoid installing the project in editable mode (which tries to write egg-info)
|
||||||
# when running inside a bind-mounted volume with restricted permissions.
|
# when running inside a bind-mounted volume with restricted permissions.
|
||||||
|
|||||||
Reference in New Issue
Block a user