[DEPLOYMENT-001] Fix PYTHONPATH to include /app/peikarband for src imports (fix) | ApprovalToken: AT-202512310653
This commit is contained in:
@@ -143,13 +143,14 @@ RUN chmod -R 755 /app && \
|
|||||||
chmod -R 777 /app/data /app/logs /app/uploaded_files
|
chmod -R 777 /app/data /app/logs /app/uploaded_files
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
# PYTHONPATH=/app allows importing peikarband from /app/peikarband/
|
# PYTHONPATH includes both /app and /app/peikarband
|
||||||
# which makes peikarband.peikarband available from /app/peikarband/peikarband/
|
# - /app: allows importing peikarband from /app/peikarband/
|
||||||
# Note: Current directory (.) is added to sys.path, but PYTHONPATH entries come first
|
# - /app/peikarband: allows importing src from /app/peikarband/src/
|
||||||
|
# This makes both peikarband.peikarband and src.* imports work correctly
|
||||||
# REFLEX_DIR points to the directory containing rxconfig.py
|
# REFLEX_DIR points to the directory containing rxconfig.py
|
||||||
ENV PYTHONUNBUFFERED=1 \
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONPATH=/app \
|
PYTHONPATH=/app:/app/peikarband \
|
||||||
PATH="/app/.venv/bin:$PATH" \
|
PATH="/app/.venv/bin:$PATH" \
|
||||||
REFLEX_DIR=/app/peikarband \
|
REFLEX_DIR=/app/peikarband \
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|||||||
Reference in New Issue
Block a user