Merge pull request #8 from FJS-Services-Inc/dev_deploy

fix: add default values for WORKERS, TIMEOUT, PORT in startup scripts
This commit is contained in:
2026-02-02 21:29:40 -05:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ cd ${__dir}/../../ || exit
source .venv/bin/activate
cd src || exit
# python -m backend.utils
gunicorn main:app -w ${WORKERS} -k uvicorn.workers.UvicornWorker \
--timeout "${TIMEOUT}" \
gunicorn main:app -w ${WORKERS:-4} -k uvicorn.workers.UvicornWorker \
--timeout "${TIMEOUT:-120}" \
--forwarded-allow-ips "*" \
-b 0.0.0.0:"${PORT}"
-b 0.0.0.0:"${PORT:-5051}"

View File

@ -12,7 +12,7 @@ services:
ports:
- "0.0.0.0:${PORT:-5051}:${INTERNAL_PORT:-5051}"
env_file:
- ./stack.env
- ./.env
environment:
- PORT=${INTERNAL_PORT:-5051}
- SERVER_ENV=${SERVER_ENV:-prod}
@ -46,7 +46,7 @@ services:
memory: ${CELERY_MEMORY_RESERVATION:-256mb}
command: bash -c "/opt/pygentic_ai/docker/celery/start.sh"
env_file:
- ./stack.env
- ./.env
environment:
- PORT=${CELERY_PORT:-5052}
- SERVER_ENV=${SERVER_ENV:-prod}

View File

@ -4,7 +4,7 @@ __dir="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd ${__dir}/../.. || exit
source .venv/bin/activate
cd src || exit
gunicorn app:app -w ${WORKERS} -k uvicorn.workers.UvicornWorker \
--timeout "${TIMEOUT}" \
gunicorn app:app -w ${WORKERS:-4} -k uvicorn.workers.UvicornWorker \
--timeout "${TIMEOUT:-120}" \
--forwarded-allow-ips "*" \
-b 0.0.0.0:"${PORT}"
-b 0.0.0.0:"${PORT:-5051}"