From 7e8023ed874d58cba7a3d8741b17a02c12847da0 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Thu, 16 Oct 2025 00:32:26 -0300 Subject: [PATCH] =?UTF-8?q?fix(ci/deploy):=20stop-first=20no=20web=20+=20s?= =?UTF-8?q?tart=20script=20com=20retry=20de=20migrations=20e=20seed=20n?= =?UTF-8?q?=C3=A3o=20fatal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stack.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/stack.yml b/stack.yml index 525f646..990d808 100644 --- a/stack.yml +++ b/stack.yml @@ -6,11 +6,7 @@ services: image: node:20-bullseye working_dir: /app command: > - bash -lc "corepack enable \ - && corepack prepare pnpm@9 --activate \ - && pnpm exec prisma migrate deploy \ - && pnpm auth:seed \ - && pnpm start -p 3000" + bash -lc "bash /app/scripts/start-web.sh" volumes: - ${APP_DIR:-/srv/apps/sistema}:/app - sistema_db:/app/data @@ -32,7 +28,7 @@ services: replicas: 1 update_config: parallelism: 1 - order: start-first + order: stop-first failure_action: rollback restart_policy: condition: any