[2026-06-03T14:32:00.881Z] [INFO] ====================================================== [2026-06-03T14:32:00.882Z] [INFO] DEPLOY INICIADO — v1.0.5 [2026-06-03T14:32:00.882Z] [INFO] Commit: 7ced896ec93e9206431fda71bbed86cfddda552a [2026-06-03T14:32:00.882Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-03T14:32:00.882Z] [INFO] Branch: main [2026-06-03T14:32:00.883Z] [INFO] Disparado por: jhon4than (CI) [2026-06-03T14:32:00.883Z] [INFO] ====================================================== [2026-06-03T14:32:00.883Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-03T14:32:00.883Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-03T14:32:00.895Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T14:32:00.898Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-03T14:32:00.899Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T14:32:00.906Z] [DEPLOY] [2026-06-03 14:32:00] STEP: Step 1/8: Pulling latest code from repository... [2026-06-03T14:32:02.475Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-03T14:32:02.475Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-03T14:32:02.641Z] [DEPLOY] [2026-06-03 14:32:02] Deploy do commit validado pelo CI: 7ced896ec93e9206431fda71bbed86cfddda552a [2026-06-03T14:32:02.667Z] [STDERR] Reset branch 'main' [2026-06-03T14:32:02.669Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-03T14:32:02.672Z] [DEPLOY] [2026-06-03 14:32:02] ✓ Code updated to latest version [2026-06-03T14:32:02.674Z] [DEPLOY] [2026-06-03 14:32:02] STEP: Step 2/8: Backing up current state... [2026-06-03T14:32:02.676Z] [DEPLOY] [2026-06-03 14:32:02] STEP: Creating backup of current state... [2026-06-03T14:32:03.056Z] [DEPLOY] [2026-06-03 14:32:03] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-03T14:32:03.059Z] [DEPLOY] [2026-06-03 14:32:03] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-03T14:32:03.065Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-03T14:32:03.066Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-03T14:32:03.067Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-03T14:32:03.068Z] [DEPLOY] Database: saas_crm [2026-06-03T14:32:03.068Z] [DEPLOY] Host: localhost:5432 [2026-06-03T14:32:03.068Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-03T14:32:03.068Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-03T14:36:37.182Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz (2.5G) [2026-06-03T14:36:37.188Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-03T14:36:37.200Z] [DEPLOY] removendo antigo: backup_20260602_160204.sql.gz [2026-06-03T14:36:37.229Z] [DEPLOY] Current backups: [2026-06-03T14:36:37.231Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 18:16 /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 20:37 /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 14:36 /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] Backup completed! [2026-06-03T14:36:37.234Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Database backup completed [2026-06-03T14:36:37.236Z] [DEPLOY] [2026-06-03 14:36:37] STEP: Step 4/8: Building new Docker images... [2026-06-03T14:36:37.238Z] [DEPLOY] [2026-06-03 14:36:37] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-03T14:36:37.534Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-03T14:36:37.604Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-03T14:36:38.602Z] [STDERR] time="2026-06-03T14:36:38Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-03T14:36:39.017Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-03T14:36:39.017Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-03T14:36:39.017Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-03T14:36:39.017Z] [DEPLOY] #1 DONE 0.1s [2026-06-03T14:36:39.017Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T14:36:39.839Z] [DEPLOY] #2 DONE 1.0s [2026-06-03T14:36:39.978Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T14:36:39.978Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T14:36:39.978Z] [DEPLOY] #3 CACHED [2026-06-03T14:36:40.483Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T14:36:41.083Z] [DEPLOY] #4 DONE 0.6s [2026-06-03T14:36:41.221Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-03T14:36:41.221Z] [DEPLOY] #5 transferring context: 304B done [2026-06-03T14:36:41.221Z] [DEPLOY] #5 DONE 0.0s [2026-06-03T14:36:41.387Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T14:36:41.387Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-03T14:36:41.388Z] [DEPLOY] #6 DONE 0.0s [2026-06-03T14:36:41.388Z] [DEPLOY] #7 [backend internal] load build context [2026-06-03T14:36:41.802Z] [DEPLOY] #7 transferring context: 10.47MB 0.5s done [2026-06-03T14:36:41.805Z] [DEPLOY] #7 DONE 0.5s [2026-06-03T14:36:41.805Z] [DEPLOY] #8 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-03T14:36:41.805Z] [DEPLOY] #8 CACHED [2026-06-03T14:36:41.805Z] [DEPLOY] #9 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:36:41.805Z] [DEPLOY] #9 CACHED [2026-06-03T14:36:41.805Z] [DEPLOY] #10 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:36:41.805Z] [DEPLOY] #10 CACHED [2026-06-03T14:36:41.806Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-03T14:36:41.806Z] [DEPLOY] #11 CACHED [2026-06-03T14:36:41.806Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T14:36:41.960Z] [DEPLOY] #12 CACHED [2026-06-03T14:36:41.960Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-03T14:36:42.266Z] [DEPLOY] #13 DONE 0.5s [2026-06-03T14:36:42.421Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-03T14:36:44.936Z] [DEPLOY] #14 2.665 Prisma schema loaded from prisma/schema.prisma [2026-06-03T14:36:49.591Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.56s [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.914Z] [DEPLOY] #14 DONE 7.6s [2026-06-03T14:36:50.066Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-03T14:36:50.741Z] [DEPLOY] #15 0.825 [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 > backend@0.0.1 build /app [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 > nest build [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 [2026-06-03T14:37:43.611Z] [DEPLOY] #15 DONE 53.7s [2026-06-03T14:37:43.783Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-03T14:37:44.286Z] [DEPLOY] #16 0.663 total 80 [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 6 root root 4096 Jun 3 14:37 . [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 4 root root 4096 Jun 3 14:37 .. [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 3 root root 4096 Jun 3 14:37 __mocks__ [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 181 Jun 3 14:37 app.controller.d.ts [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 1611 Jun 3 14:37 app.controller.js [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 436 Jun 3 14:37 app.controller.js.map [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 35 Jun 3 14:37 app.module.d.ts [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 8972 Jun 3 14:37 app.module.js [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 2525 Jun 3 14:37 app.module.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 60 Jun 3 14:37 app.service.d.ts [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 981 Jun 3 14:37 app.service.js [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 281 Jun 3 14:37 app.service.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 drwxr-xr-x 4 root root 4096 Jun 3 14:37 common [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 11 Jun 3 14:37 main.d.ts [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 2914 Jun 3 14:37 main.js [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 -rw-r--r-- 1 root root 2491 Jun 3 14:37 main.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 drwxr-xr-x 58 root root 4096 Jun 3 14:37 modules [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 drwxr-xr-x 2 root root 4096 Jun 3 14:37 prisma [2026-06-03T14:37:44.488Z] [DEPLOY] #16 DONE 0.7s [2026-06-03T14:37:52.085Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-03T14:37:52.086Z] [DEPLOY] #17 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #18 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-03T14:37:52.086Z] [DEPLOY] #18 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #19 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-03T14:37:52.086Z] [DEPLOY] #19 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:37:52.086Z] [DEPLOY] #20 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #21 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-03T14:37:52.086Z] [DEPLOY] #21 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #22 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:37:52.086Z] [DEPLOY] #22 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-03T14:37:52.245Z] [DEPLOY] #23 CACHED [2026-06-03T14:37:52.245Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-03T14:37:52.848Z] [DEPLOY] #24 DONE 0.8s [2026-06-03T14:37:53.004Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-03T14:37:53.243Z] [DEPLOY] #25 DONE 0.4s [2026-06-03T14:37:53.394Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-03T14:38:41.287Z] [DEPLOY] #26 DONE 48.0s [2026-06-03T14:38:41.443Z] [DEPLOY] #27 [backend] exporting to image [2026-06-03T14:38:41.443Z] [DEPLOY] #27 exporting layers [2026-06-03T14:39:02.640Z] [DEPLOY] #27 exporting layers 21.3s done [2026-06-03T14:39:02.882Z] [DEPLOY] #27 exporting manifest sha256:27e8c0260a3d468883982a73250f21f8b0cde2398de64ecb2b13c24a634311ab 0.0s done [2026-06-03T14:39:02.882Z] [DEPLOY] #27 exporting config sha256:64a24bc2f93c79996f2db61b224fcd4a1715823b9bf0e21355b468edb19cbbf5 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 exporting attestation manifest sha256:9cb2fbab0484988bd3fc906514c090fda167a525a55eae3e9407b242cefafa37 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 exporting manifest list sha256:7b34741c93820669507d059b24b40996b9bb78b3c77d95e4aa9932bb946b5f62 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-03T14:39:11.948Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 9.2s done [2026-06-03T14:39:12.144Z] [DEPLOY] #27 DONE 30.7s [2026-06-03T14:39:12.217Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-03T14:39:12.337Z] [DEPLOY] #28 DONE 0.0s [2026-06-03T14:39:12.338Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-03T14:39:12.339Z] [DEPLOY] #29 transferring dockerfile: [2026-06-03T14:39:12.516Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-03T14:39:12.517Z] [DEPLOY] #29 DONE 0.0s [2026-06-03T14:39:12.519Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T14:39:12.815Z] [DEPLOY] #2 DONE 1.4s [2026-06-03T14:39:13.015Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T14:39:13.015Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T14:39:13.016Z] [DEPLOY] #3 CACHED [2026-06-03T14:39:13.073Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T14:39:13.527Z] [DEPLOY] #4 DONE 1.1s [2026-06-03T14:39:13.527Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-03T14:39:13.814Z] [DEPLOY] #30 DONE 0.7s [2026-06-03T14:39:14.065Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-03T14:39:14.066Z] [DEPLOY] #31 transferring context: 194B done [2026-06-03T14:39:14.066Z] [DEPLOY] #31 DONE 0.1s [2026-06-03T14:39:15.007Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T14:39:15.007Z] [DEPLOY] #32 DONE 0.0s [2026-06-03T14:39:15.007Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T14:39:15.007Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-03T14:39:15.007Z] [DEPLOY] #6 DONE 0.1s [2026-06-03T14:39:15.008Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-03T14:39:15.008Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-03T14:39:15.008Z] [DEPLOY] #33 DONE 0.1s [2026-06-03T14:39:15.117Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T14:39:15.628Z] [DEPLOY] #32 transferring context: 5.77MB 0.3s done [2026-06-03T14:39:15.633Z] [DEPLOY] #32 DONE 0.4s [2026-06-03T14:39:15.634Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:39:15.634Z] [DEPLOY] #34 CACHED [2026-06-03T14:39:15.634Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:39:15.634Z] [DEPLOY] #35 CACHED [2026-06-03T14:39:15.634Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-03T14:39:15.635Z] [DEPLOY] #11 CACHED [2026-06-03T14:39:15.635Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T14:39:15.635Z] [DEPLOY] #36 CACHED [2026-06-03T14:39:15.635Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-03T14:39:15.657Z] [DEPLOY] #37 DONE 0.2s [2026-06-03T14:39:15.811Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-03T14:39:16.780Z] [DEPLOY] #38 1.119 [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 > frontend@1.0.0 build /app [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 > tsc && vite build [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 [2026-06-03T14:40:22.471Z] [DEPLOY] #38 66.81 vite v5.4.21 building for production... [2026-06-03T14:40:23.119Z] [DEPLOY] #38 67.46 transforming... [2026-06-03T14:40:23.369Z] [DEPLOY] #38 67.56 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-03T14:40:23.371Z] [DEPLOY] #38 67.56 npx update-browserslist-db@latest [2026-06-03T14:40:23.372Z] [DEPLOY] #38 67.56 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-03T14:40:51.283Z] [DEPLOY] #38 95.62 ✓ 4325 modules transformed. [2026-06-03T14:40:53.150Z] [DEPLOY] #38 97.49 rendering chunks... [2026-06-03T14:40:56.588Z] [DEPLOY] #38 100.9 computing gzip size... [2026-06-03T14:40:56.779Z] [DEPLOY] #38 101.1 dist/registerSW.js 0.13 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/manifest.webmanifest 0.54 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index.es-CUVhc5bm.js 150.69 kB │ gzip: 51.55 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index-wsMQyfLE.js 4,151.94 kB │ gzip: 1,078.17 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 - Using dynamic import() to code-split the application [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 ✓ built in 33.70s [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 PWA v1.2.0 [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 Building src/sw.ts service worker ("es" format)... [2026-06-03T14:40:56.942Z] [DEPLOY] #38 101.1 vite v5.4.21 building for production... [2026-06-03T14:40:58.409Z] [DEPLOY] #38 102.7 transforming... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 ✓ 1 modules transformed. [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 rendering chunks... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 computing gzip size... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 ✓ built in 1.65s [2026-06-03T14:40:58.618Z] [DEPLOY] #38 103.0 [2026-06-03T14:40:58.618Z] [DEPLOY] #38 103.0 PWA v1.2.0 [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 mode injectManifest [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 format: es [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 precache 15 entries (4941.25 KiB) [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 files generated [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 dist/sw.js [2026-06-03T14:40:59.051Z] [DEPLOY] #38 DONE 103.4s [2026-06-03T14:41:02.291Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-03T14:41:02.292Z] [DEPLOY] #39 CACHED [2026-06-03T14:41:02.292Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-03T14:41:02.411Z] [DEPLOY] #40 CACHED [2026-06-03T14:41:02.411Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-03T14:41:02.411Z] [DEPLOY] #41 DONE 0.1s [2026-06-03T14:41:02.575Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-03T14:41:02.575Z] [DEPLOY] #42 exporting layers [2026-06-03T14:41:02.815Z] [DEPLOY] #42 exporting layers 0.4s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting manifest sha256:e11a9cba4386e5ba0f2bb38a2cebe870661f4a3c93ce743f5e9b49bcaaba886c done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting config sha256:cb077cbb324e6b1cd1f3fb5779efebe4cbb60521ed27f23f7294d8e724f3f5f3 0.0s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting attestation manifest sha256:1e744a5c4a7245e453fe164c7ee8e7141d8d8a99639cfacc38a53c7331507a23 0.0s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting manifest list sha256:bad24b631c10dd76d90c7b033a0072ccfd70d0b8dc913c80de23128ebb372bae done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest [2026-06-03T14:41:03.049Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-03T14:41:03.049Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-03T14:41:03.261Z] [DEPLOY] #42 DONE 0.7s [2026-06-03T14:41:03.537Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-03T14:41:03.546Z] [DEPLOY] #43 DONE 0.0s [2026-06-03T14:41:03.547Z] [STDERR] backend Built [2026-06-03T14:41:03.547Z] [STDERR] frontend Built [2026-06-03T14:41:03.571Z] [DEPLOY] [2026-06-03 14:41:03] ✓ New images built successfully [2026-06-03T14:41:03.572Z] [DEPLOY] [2026-06-03 14:41:03] STEP: Step 5/8: Running database migrations... [2026-06-03T14:41:03.574Z] [DEPLOY] [2026-06-03 14:41:03] Checking for pending migrations... [2026-06-03T14:41:03.575Z] [DEPLOY] [2026-06-03 14:41:03] Applying schema changes... [2026-06-03T14:41:06.770Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-03T14:41:06.841Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-03T14:41:07.832Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-03T14:41:07.945Z] [DEPLOY] npm notice [2026-06-03T14:41:07.946Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-03T14:41:07.946Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-03T14:41:07.947Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-03T14:41:07.947Z] [DEPLOY] npm notice [2026-06-03T14:41:08.395Z] [DEPLOY] [2026-06-03 14:41:08] ✓ Database schema already in sync [2026-06-03T14:41:08.399Z] [DEPLOY] [2026-06-03 14:41:08] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-03T14:41:08.400Z] [DEPLOY] [2026-06-03 14:41:08] Updating backend container... [2026-06-03T14:41:08.747Z] [STDERR] Container clicknex-redis Running [2026-06-03T14:41:08.747Z] [STDERR] Container clicknex-backend Recreate [2026-06-03T14:41:19.411Z] [STDERR] Container clicknex-backend Recreated [2026-06-03T14:41:19.468Z] [STDERR] Container clicknex-redis Waiting [2026-06-03T14:41:19.971Z] [STDERR] Container clicknex-redis Healthy [2026-06-03T14:41:19.972Z] [STDERR] Container clicknex-backend Starting [2026-06-03T14:41:20.485Z] [STDERR] Container clicknex-backend Started [2026-06-03T14:41:25.626Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-03T14:41:27.711Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-03T14:41:29.790Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-03T14:41:31.871Z] [DEPLOY] [2026-06-03 14:41:31] ✓ Backend health check passed (healthy) [2026-06-03T14:41:31.872Z] [DEPLOY] [2026-06-03 14:41:31] Updating frontend container... [2026-06-03T14:41:32.132Z] [STDERR] Container clicknex-frontend Recreate [2026-06-03T14:41:32.744Z] [STDERR] Container clicknex-frontend Recreated [2026-06-03T14:41:32.807Z] [STDERR] Container clicknex-frontend Starting [2026-06-03T14:41:33.088Z] [STDERR] Container clicknex-frontend Started [2026-06-03T14:41:33.100Z] [DEPLOY] [2026-06-03 14:41:33] ✓ New containers started [2026-06-03T14:41:33.102Z] [DEPLOY] [2026-06-03 14:41:33] STEP: Step 7/8: Running health checks... [2026-06-03T14:41:33.164Z] [DEPLOY] [2026-06-03 14:41:33] ✓ Backend health check passed (healthy) [2026-06-03T14:41:33.219Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-03T14:41:35.278Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-03T14:41:37.350Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-03T14:41:39.431Z] [DEPLOY] [2026-06-03 14:41:39] ✓ Frontend health check passed (healthy) [2026-06-03T14:41:39.433Z] [DEPLOY] [2026-06-03 14:41:39] ✓ All health checks passed [2026-06-03T14:41:39.435Z] [DEPLOY] [2026-06-03 14:41:39] STEP: Step 8/8: Cleaning up old resources... [2026-06-03T14:41:41.872Z] [DEPLOY] [2026-06-03 14:41:41] ✓ Cleanup completed (disco: ?%) [2026-06-03T14:41:41.874Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T14:41:41.874Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-03T14:41:41.875Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T14:41:41.883Z] [DEPLOY] ║ Commit: 7ced896 ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ Time: 2026-06-03 14:41:41 ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ Services: ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-03T14:41:41.887Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-03T14:41:41.887Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T14:41:41.891Z] [INFO] Deploy script encerrado com código: 0 [2026-06-03T14:41:41.892Z] [INFO] ====================================================== [2026-06-03T14:41:41.892Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.5 em 581s [2026-06-03T14:41:41.892Z] [INFO] ======================================================