fix: Worker 并发默认值从 1 改为 4(部署脚本) #1301

Merged
xiaoxia merged 1 commits from fix/worker-concurrency-default-4 into develop 2026-08-08 14:32:43 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ docker run -d \
--network xiaoxia-net-production \
-e APP_ENV=production \
-e APP_VERSION="$IMAGE_TAG" \
-e WORKER_CONCURRENCY=1 \
-e WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}" \
-e WORKER_MAX_TASKS_PER_CHILD=100 \
-e GENERATED_FILES_DIR=/app/generated \
-e GENERATED_FILES_URL_PREFIX=/generated-files \
+1 -1
View File
@@ -81,7 +81,7 @@ export WEB_DOCKERFILE=infra/docker/web-artifact.Dockerfile
export WEB_NGINX_CONF=infra/docker/nginx-production.conf
docker network create xiaoxia-net-production 2>/dev/null || true
export WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-1}"
export WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}"
export WORKER_MAX_TASKS_PER_CHILD="${WORKER_MAX_TASKS_PER_CHILD:-100}"
if [ "${ALLOW_PRODUCTION_BUILDS:-false}" = "true" ]; then
+1 -1
View File
@@ -108,7 +108,7 @@ docker run -d \
--network xiaoxia-net-staging \
-e APP_ENV=staging \
-e APP_VERSION="$IMAGE_TAG" \
-e WORKER_CONCURRENCY=1 \
-e WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}" \
-e WORKER_MAX_TASKS_PER_CHILD=100 \
-e GENERATED_FILES_DIR=/app/generated \
-e GENERATED_FILES_URL_PREFIX=/generated-files \