From c95b2ebdc210eac11577fb6c198647cccc41846a Mon Sep 17 00:00:00 2001 From: tim Date: Fri, 3 Oct 2025 00:48:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9staging=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy_staging.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/deploy_staging.sh b/deploy/deploy_staging.sh index ecdbd91a1..2f6a3d066 100644 --- a/deploy/deploy_staging.sh +++ b/deploy/deploy_staging.sh @@ -8,7 +8,6 @@ deploy_branch="${1:-main}" repo_dir="/opt/openisle/OpenIsle-staging" compose_file="${repo_dir}/docker/docker-compose.yaml" -# 使用仓库根目录的 .env(CI 预先写好),也可以改成绝对路径 env_file="${repo_dir}/.env" project="openisle_staging" @@ -41,12 +40,12 @@ echo "👉 Build images (staging)..." docker compose -f "$compose_file" --env-file "$env_file" \ build --pull \ --build-arg NUXT_ENV=staging \ - frontend_service opensearch + frontend_service echo "👉 Recreate & start all target services (no dev profile)..." docker compose -f "$compose_file" --env-file "$env_file" \ - up -d --force-recreate --remove-orphans \ - mysql redis rabbitmq opensearch dashboards websocket-service springboot frontend_service + up -d --force-recreate --remove-orphans --no-deps \ + mysql redis rabbitmq websocket-service springboot frontend_service echo "👉 Current status:" docker compose -f "$compose_file" --env-file "$env_file" ps