[DEPLOYMENT-001] Fix PYTHONPATH to use only /app for correct module resolution (fix) | ApprovalToken: AT-202512310628
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -143,13 +143,13 @@ 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 package from /app/peikarband/
|
# PYTHONPATH=/app allows importing peikarband from /app/peikarband/
|
||||||
# and peikarband.peikarband from /app/peikarband/peikarband/
|
# which makes peikarband.peikarband available from /app/peikarband/peikarband/
|
||||||
# Note: Python adds current directory (.) to sys.path automatically, but PYTHONPATH entries come first
|
# Note: Current directory (.) is added to sys.path, but PYTHONPATH entries come first
|
||||||
# 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:/app/peikarband \
|
PYTHONPATH=/app \
|
||||||
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