[2026-06-10T00:01:52.964Z] [INFO] ====================================================== [2026-06-10T00:01:52.967Z] [INFO] DEPLOY INICIADO — v1.0.11 [2026-06-10T00:01:52.968Z] [INFO] Commit: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:52.968Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T00:01:52.968Z] [INFO] Branch: main [2026-06-10T00:01:52.968Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T00:01:52.968Z] [INFO] ====================================================== [2026-06-10T00:01:52.969Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T00:01:52.969Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T00:01:52.988Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:01:52.989Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T00:01:52.989Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:01:52.996Z] [DEPLOY] [2026-06-10 00:01:52] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T00:01:54.846Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T00:01:54.847Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T00:01:54.847Z] [STDERR] c42c931..04932f0 main -> origin/main [2026-06-10T00:01:54.873Z] [DEPLOY] [2026-06-10 00:01:54] Deploy do commit validado pelo CI: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:54.901Z] [STDERR] Reset branch 'main' [2026-06-10T00:01:54.901Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T00:01:54.911Z] [DEPLOY] [2026-06-10 00:01:54] ✓ Code updated to latest version [2026-06-10T00:01:54.921Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Step 2/8: Backing up current state... [2026-06-10T00:01:54.923Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Creating backup of current state... [2026-06-10T00:01:55.660Z] [DEPLOY] [2026-06-10 00:01:55] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T00:01:55.664Z] [DEPLOY] [2026-06-10 00:01:55] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T00:01:55.670Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T00:01:55.670Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T00:01:55.670Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T00:01:55.671Z] [DEPLOY] Database: saas_crm [2026-06-10T00:01:55.671Z] [DEPLOY] Host: localhost:5432 [2026-06-10T00:01:55.671Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:01:55.671Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T00:07:36.812Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz (2.9G) [2026-06-10T00:07:36.813Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T00:07:36.816Z] [DEPLOY] removendo antigo: backup_20260609_191920.sql.gz [2026-06-10T00:07:36.860Z] [DEPLOY] Current backups: [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 20:17 /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 23:19 /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 00:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] Backup completed! [2026-06-10T00:07:36.864Z] [DEPLOY] [2026-06-10 00:07:36] ✓ Database backup completed [2026-06-10T00:07:36.865Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Step 4/8: Building new Docker images... [2026-06-10T00:07:36.866Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T00:07:37.200Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T00:07:37.248Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T00:07:37.403Z] [STDERR] time="2026-06-10T00:07:37Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T00:07:37.788Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T00:07:37.788Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T00:07:37.788Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-10T00:07:37.788Z] [DEPLOY] #1 DONE 0.0s [2026-06-10T00:07:37.788Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:07:38.478Z] [DEPLOY] #2 DONE 0.8s [2026-06-10T00:07:38.670Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:07:38.670Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:07:38.671Z] [DEPLOY] #3 CACHED [2026-06-10T00:07:39.403Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:07:40.140Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T00:07:40.328Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T00:07:40.328Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T00:07:40.328Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T00:07:40.432Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:07:40.432Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T00:07:40.432Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T00:07:40.432Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T00:07:40.557Z] [DEPLOY] #7 transferring context: 168.51kB 0.1s done [2026-06-10T00:07:40.662Z] [DEPLOY] #7 DONE 0.2s [2026-06-10T00:07:40.662Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:07:40.662Z] [DEPLOY] #8 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:07:40.662Z] [DEPLOY] #9 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-10T00:07:40.662Z] [DEPLOY] #10 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T00:07:40.662Z] [DEPLOY] #11 CACHED [2026-06-10T00:07:40.662Z] [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-10T00:07:40.662Z] [DEPLOY] #12 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-10T00:07:41.454Z] [DEPLOY] #13 DONE 0.8s [2026-06-10T00:07:41.604Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T00:07:44.141Z] [DEPLOY] #14 2.684 Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:07:49.058Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 ✔ 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.82s [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.425Z] [DEPLOY] #14 DONE 8.0s [2026-06-10T00:07:49.577Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > backend@0.0.1 build /app [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > nest build [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:08:37.515Z] [DEPLOY] #15 DONE 48.1s [2026-06-10T00:08:37.668Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 total 80 [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 6 root root 4096 Jun 10 00:08 . [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 .. [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 3 root root 4096 Jun 10 00:08 __mocks__ [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 181 Jun 10 00:08 app.controller.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 1611 Jun 10 00:08 app.controller.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 436 Jun 10 00:08 app.controller.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 35 Jun 10 00:08 app.module.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 8972 Jun 10 00:08 app.module.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2525 Jun 10 00:08 app.module.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 60 Jun 10 00:08 app.service.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 981 Jun 10 00:08 app.service.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 281 Jun 10 00:08 app.service.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 common [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 11 Jun 10 00:08 main.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2914 Jun 10 00:08 main.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2491 Jun 10 00:08 main.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 58 root root 4096 Jun 10 00:08 modules [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 2 root root 4096 Jun 10 00:08 prisma [2026-06-10T00:08:37.959Z] [DEPLOY] #16 DONE 0.3s [2026-06-10T00:08:42.249Z] [DEPLOY] #17 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T00:08:42.250Z] [DEPLOY] #17 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #18 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:08:42.250Z] [DEPLOY] #18 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #19 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T00:08:42.250Z] [DEPLOY] #19 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #20 [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-10T00:08:42.250Z] [DEPLOY] #20 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #21 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T00:08:42.250Z] [DEPLOY] #21 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #22 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:08:42.250Z] [DEPLOY] #22 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T00:08:42.408Z] [DEPLOY] #23 CACHED [2026-06-10T00:08:42.409Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T00:08:42.695Z] [DEPLOY] #24 DONE 0.4s [2026-06-10T00:08:42.849Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T00:08:43.023Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T00:08:43.179Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T00:09:23.541Z] [DEPLOY] #26 DONE 40.5s [2026-06-10T00:09:23.700Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T00:09:23.700Z] [DEPLOY] #27 exporting layers [2026-06-10T00:09:40.718Z] [DEPLOY] #27 exporting layers 17.2s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest sha256:9352a750659426263eada41531f1fd2744140de59553e622f646bcfb0759d630 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting config sha256:3997ad39f051abb15892804088f85499bc77869828036351f60b2c6efeea2713 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting attestation manifest sha256:cd0175d46a188ad7986a0316e9ae44cdee21f1908cc8e852824dd2897da6ef98 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 [2026-06-10T00:09:40.986Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 0.0s done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T00:09:46.701Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 5.9s done [2026-06-10T00:09:46.891Z] [DEPLOY] #27 DONE 23.2s [2026-06-10T00:09:46.994Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T00:09:47.094Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T00:09:47.094Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T00:09:47.261Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T00:09:47.261Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T00:09:47.261Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:09:47.588Z] [DEPLOY] #2 DONE 1.3s [2026-06-10T00:09:47.739Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:09:47.739Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:09:47.739Z] [DEPLOY] #3 CACHED [2026-06-10T00:09:47.739Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.220Z] [DEPLOY] #30 ... [2026-06-10T00:09:48.221Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:09:48.221Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T00:09:48.371Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.492Z] [DEPLOY] #30 DONE 0.7s [2026-06-10T00:09:48.741Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T00:09:48.742Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T00:09:48.742Z] [DEPLOY] #31 DONE 0.1s [2026-06-10T00:09:49.782Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:49.782Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T00:09:49.782Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.782Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.798Z] [DEPLOY] #33 ... [2026-06-10T00:09:49.798Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:09:49.798Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.2s done [2026-06-10T00:09:49.798Z] [DEPLOY] #6 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:50.043Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.2s done [2026-06-10T00:09:50.043Z] [DEPLOY] #33 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:50.043Z] [DEPLOY] #32 transferring context: 165.24kB 0.0s done [2026-06-10T00:09:50.043Z] [DEPLOY] #32 DONE 0.1s [2026-06-10T00:09:50.044Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-10T00:09:50.044Z] [DEPLOY] #10 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:09:50.044Z] [DEPLOY] #34 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:09:50.044Z] [DEPLOY] #35 CACHED [2026-06-10T00:09:50.044Z] [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-10T00:09:50.045Z] [DEPLOY] #36 CACHED [2026-06-10T00:09:50.045Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T00:09:50.455Z] [DEPLOY] #37 DONE 0.6s [2026-06-10T00:09:50.626Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 > frontend@1.0.0 build /app [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 > tsc && vite build [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 [2026-06-10T00:10:50.491Z] [DEPLOY] #38 60.02 vite v5.4.21 building for production... [2026-06-10T00:10:51.187Z] [DEPLOY] #38 60.71 transforming... [2026-06-10T00:10:51.698Z] [DEPLOY] #38 61.22 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 npx update-browserslist-db@latest [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T00:11:16.706Z] [DEPLOY] #38 86.23 ✓ 4326 modules transformed. [2026-06-10T00:11:18.458Z] [DEPLOY] #38 87.98 rendering chunks... [2026-06-10T00:11:21.371Z] [DEPLOY] #38 90.90 computing gzip size... [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/registerSW.js 0.13 kB [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/manifest.webmanifest 0.54 kB [2026-06-10T00:11:21.611Z] [DEPLOY] #38 91.14 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Using dynamic import() to code-split the application [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-RRJDHv6S.css 163.33 kB │ gzip: 24.93 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index.es-CyiEOaTq.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-D_oG79p0.js 4,161.99 kB │ gzip: 1,080.46 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 ✓ built in 31.06s [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 PWA v1.2.0 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 Building src/sw.ts service worker ("es" format)... [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.16 vite v5.4.21 building for production... [2026-06-10T00:11:23.198Z] [DEPLOY] #38 92.72 transforming... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.73 ✓ 1 modules transformed. [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 rendering chunks... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 computing gzip size... [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 ✓ built in 1.59s [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 PWA v1.2.0 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 mode injectManifest [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 format: es [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 precache 15 entries (4951.25 KiB) [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 files generated [2026-06-10T00:11:23.571Z] [DEPLOY] #38 93.10 dist/sw.js [2026-06-10T00:11:24.172Z] [DEPLOY] #38 DONE 93.7s [2026-06-10T00:11:25.769Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T00:11:25.769Z] [DEPLOY] #39 CACHED [2026-06-10T00:11:25.769Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T00:11:25.998Z] [DEPLOY] #40 CACHED [2026-06-10T00:11:25.998Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T00:11:25.998Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T00:11:25.998Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T00:11:25.998Z] [DEPLOY] #42 exporting layers [2026-06-10T00:11:26.111Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest sha256:d2e2efce618398e679b1101e3ab1d3f9b7d5840b65d0dd98f8ff0c2d541da847 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting config sha256:29032daf4e6eb72fbc557d9fcb147ae0e57f76990e7c391e558cc572e273d051 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting attestation manifest sha256:0ff61557548b8aa9fb8e799e9ce12cc93fc73376e7d817da91399f9c3cd4789b 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest list sha256:7e5ece65741734a8370e84c80956c94e5062f78e0b8912b8e857710569c2e594 done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T00:11:26.418Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T00:11:26.418Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T00:11:26.425Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T00:11:26.425Z] [STDERR] backend Built [2026-06-10T00:11:26.425Z] [STDERR] frontend Built [2026-06-10T00:11:26.434Z] [DEPLOY] [2026-06-10 00:11:26] ✓ New images built successfully [2026-06-10T00:11:26.436Z] [DEPLOY] [2026-06-10 00:11:26] STEP: Step 5/8: Running database migrations... [2026-06-10T00:11:26.437Z] [DEPLOY] [2026-06-10 00:11:26] Checking for pending migrations... [2026-06-10T00:11:26.440Z] [DEPLOY] [2026-06-10 00:11:26] Applying schema changes... [2026-06-10T00:11:28.867Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:11:28.910Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T00:11:29.590Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:30.103Z] [DEPLOY] [2026-06-10 00:11:30] ✓ Database schema already in sync [2026-06-10T00:11:30.104Z] [DEPLOY] [2026-06-10 00:11:30] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T00:11:30.105Z] [DEPLOY] [2026-06-10 00:11:30] Updating backend container... [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-redis Running [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T00:11:40.930Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T00:11:40.972Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-backend Starting [2026-06-10T00:11:41.722Z] [STDERR] Container clicknex-backend Started [2026-06-10T00:11:46.800Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T00:11:48.853Z] [DEPLOY] [2026-06-10 00:11:48] ✓ Backend health check passed (healthy) [2026-06-10T00:11:48.854Z] [DEPLOY] [2026-06-10 00:11:48] Updating frontend container... [2026-06-10T00:11:49.082Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T00:11:49.615Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T00:11:49.674Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T00:11:49.949Z] [STDERR] Container clicknex-frontend Started [2026-06-10T00:11:49.961Z] [DEPLOY] [2026-06-10 00:11:49] ✓ New containers started [2026-06-10T00:11:49.963Z] [DEPLOY] [2026-06-10 00:11:49] STEP: Step 7/8: Running health checks... [2026-06-10T00:11:50.017Z] [DEPLOY] [2026-06-10 00:11:50] ✓ Backend health check passed (healthy) [2026-06-10T00:11:50.088Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T00:11:52.150Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T00:11:54.196Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T00:11:56.289Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Frontend health check passed (healthy) [2026-06-10T00:11:56.290Z] [DEPLOY] [2026-06-10 00:11:56] ✓ All health checks passed [2026-06-10T00:11:56.292Z] [DEPLOY] [2026-06-10 00:11:56] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T00:11:56.694Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Cleanup completed (disco: ?%) [2026-06-10T00:11:56.696Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:11:56.696Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T00:11:56.697Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.699Z] [DEPLOY] ║ Commit: 04932f0 ║ [2026-06-10T00:11:56.706Z] [DEPLOY] ║ Time: 2026-06-10 00:11:56 ║ [2026-06-10T00:11:56.709Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ Services: ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:11:56.713Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T00:11:56.716Z] [INFO] ====================================================== [2026-06-10T00:11:56.716Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.11 em 604s [2026-06-10T00:11:56.716Z] [INFO] ======================================================