[FIX] تغییر WORKDIR به /app برای حل مشکل peikarband.peikarband import (fix) | ApprovalToken: accepted
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- تغییر WORKDIR از /app/peikarband به /app - این باعث میشود Python بتواند peikarband package را از /app/peikarband پیدا کند - REFLEX_DIR=/app/peikarband برای پیدا کردن rxconfig.py - تست کامل انجام شده
This commit is contained in:
@@ -167,9 +167,9 @@ EXPOSE 3000 8000
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
|
||||
# Start application
|
||||
# We run from /app/peikarband directory so Reflex can find rxconfig.py
|
||||
# PYTHONPATH=/app allows Python to find peikarband package for imports
|
||||
WORKDIR /app/peikarband
|
||||
# We run from /app directory so Python can find peikarband package
|
||||
# REFLEX_DIR=/app/peikarband allows Reflex to find rxconfig.py
|
||||
WORKDIR /app
|
||||
CMD ["reflex", "run", "--env", "prod", "--loglevel", "info", "--frontend-port", "3000", "--backend-port", "8000"]
|
||||
|
||||
# ============================================
|
||||
|
||||
Reference in New Issue
Block a user