fix: change REFLEX_ENV from 'production' to 'prod' in Dockerfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
Reflex only accepts 'dev' or 'prod' as valid --env values. This was causing: Error: Invalid value for '--env': 'production' is not one of 'dev', 'prod' Changes: - Dockerfile: REFLEX_ENV=production -> prod - Dockerfile CMD: --env production -> prod - docs/handbook.md: updated example command
This commit is contained in:
@@ -120,8 +120,8 @@ ENV PATH=/home/peikarband/.local/bin:$PATH \
|
|||||||
PYTHONHASHSEED=random \
|
PYTHONHASHSEED=random \
|
||||||
PIP_NO_CACHE_DIR=1 \
|
PIP_NO_CACHE_DIR=1 \
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||||
REFLEX_ENV=production \
|
REFLEX_ENV=prod \
|
||||||
ENVIRONMENT=production
|
ENVIRONMENT=prod
|
||||||
|
|
||||||
# Switch to non-root user
|
# Switch to non-root user
|
||||||
USER peikarband
|
USER peikarband
|
||||||
@@ -137,5 +137,5 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|||||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
|
||||||
# Run application
|
# Run application
|
||||||
CMD ["python", "-m", "reflex", "run", "--env", "production", "--backend-only"]
|
CMD ["python", "-m", "reflex", "run", "--env", "prod", "--backend-only"]
|
||||||
|
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ python -m reflex run
|
|||||||
python -m reflex run --reload
|
python -m reflex run --reload
|
||||||
|
|
||||||
# Production mode
|
# Production mode
|
||||||
python -m reflex run --env production
|
python -m reflex run --env prod
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user