[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
|
||||
|
||||
# Environment variables
|
||||
# PYTHONPATH=/app allows importing peikarband from /app/peikarband/
|
||||
# which makes peikarband.peikarband available from /app/peikarband/peikarband/
|
||||
# Note: Current directory (.) is added to sys.path, but PYTHONPATH entries come first
|
||||
# PYTHONPATH includes both /app and /app/peikarband
|
||||
# - /app: allows importing peikarband from /app/peikarband/
|
||||
# - /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
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONPATH=/app \
|
||||
PYTHONPATH=/app:/app/peikarband \
|
||||
PATH="/app/.venv/bin:$PATH" \
|
||||
REFLEX_DIR=/app/peikarband \
|
||||
NODE_ENV=production
|
||||
|
||||
Reference in New Issue
Block a user