[2026-06-10T03:28:49.135Z] [INFO] ====================================================== [2026-06-10T03:28:49.139Z] [INFO] DEPLOY INICIADO — v1.0.12 [2026-06-10T03:28:49.139Z] [INFO] Commit: d3d452a142ffdb4acce3a462b0e1f01a1e9443f6 [2026-06-10T03:28:49.139Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T03:28:49.140Z] [INFO] Branch: main [2026-06-10T03:28:49.140Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T03:28:49.140Z] [INFO] ====================================================== [2026-06-10T03:28:49.140Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T03:28:49.140Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T03:28:49.171Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:28:49.172Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T03:28:49.172Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:28:49.172Z] [DEPLOY] [2026-06-10 03:28:49] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T03:28:51.263Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T03:28:51.264Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T03:28:51.265Z] [STDERR] 04932f0..d3d452a main -> origin/main [2026-06-10T03:28:51.405Z] [DEPLOY] [2026-06-10 03:28:51] Deploy do commit validado pelo CI: d3d452a142ffdb4acce3a462b0e1f01a1e9443f6 [2026-06-10T03:28:51.472Z] [STDERR] Reset branch 'main' [2026-06-10T03:28:51.473Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T03:28:51.475Z] [DEPLOY] [2026-06-10 03:28:51] ✓ Code updated to latest version [2026-06-10T03:28:51.476Z] [DEPLOY] [2026-06-10 03:28:51] STEP: Step 2/8: Backing up current state... [2026-06-10T03:28:51.477Z] [DEPLOY] [2026-06-10 03:28:51] STEP: Creating backup of current state... [2026-06-10T03:28:52.310Z] [DEPLOY] [2026-06-10 03:28:52] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T03:28:52.312Z] [DEPLOY] [2026-06-10 03:28:52] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T03:28:52.320Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T03:28:52.321Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T03:28:52.321Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T03:28:52.321Z] [DEPLOY] Database: saas_crm [2026-06-10T03:28:52.321Z] [DEPLOY] Host: localhost:5432 [2026-06-10T03:28:52.321Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T03:28:52.322Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T03:33:21.991Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz (2.9G) [2026-06-10T03:33:21.994Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T03:33:21.997Z] [DEPLOY] removendo antigo: backup_20260609_201125.sql.gz [2026-06-10T03:33:22.053Z] [DEPLOY] Current backups: [2026-06-10T03:33:22.058Z] [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-10T03:33:22.059Z] [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-10T03:33:22.060Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:33 /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T03:33:22.062Z] [DEPLOY] Backup completed! [2026-06-10T03:33:22.063Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Database backup completed [2026-06-10T03:33:22.065Z] [DEPLOY] [2026-06-10 03:33:22] STEP: Step 4/8: Building new Docker images... [2026-06-10T03:33:22.068Z] [DEPLOY] [2026-06-10 03:33:22] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T03:33:22.648Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T03:33:22.692Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T03:33:23.788Z] [STDERR] time="2026-06-10T03:33:23Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T03:33:24.195Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T03:33:24.195Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T03:33:24.196Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-10T03:33:24.197Z] [DEPLOY] #1 DONE 0.1s [2026-06-10T03:33:24.197Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:33:25.157Z] [DEPLOY] #2 DONE 1.0s [2026-06-10T03:33:25.347Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:33:25.347Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:33:25.347Z] [DEPLOY] #3 CACHED [2026-06-10T03:33:25.786Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:33:26.537Z] [DEPLOY] #4 DONE 0.8s [2026-06-10T03:33:26.658Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T03:33:26.659Z] [DEPLOY] #5 transferring context: 304B 0.0s done [2026-06-10T03:33:26.659Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T03:33:26.825Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:33:26.825Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:33:26.825Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T03:33:26.825Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T03:33:26.977Z] [DEPLOY] #7 transferring context: 275.50kB 0.2s done [2026-06-10T03:33:26.977Z] [DEPLOY] #7 DONE 0.3s [2026-06-10T03:33:27.150Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:33:27.150Z] [DEPLOY] #8 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:33:27.150Z] [DEPLOY] #9 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-10T03:33:27.150Z] [DEPLOY] #10 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T03:33:27.151Z] [DEPLOY] #11 CACHED [2026-06-10T03:33:27.151Z] [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-10T03:33:27.151Z] [DEPLOY] #12 CACHED [2026-06-10T03:33:27.151Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-10T03:33:27.921Z] [DEPLOY] #13 DONE 0.9s [2026-06-10T03:33:28.079Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T03:33:31.318Z] [DEPLOY] #14 3.387 Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:33:35.429Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 ✔ 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.42s [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 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-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.786Z] [DEPLOY] #14 DONE 7.9s [2026-06-10T03:33:35.942Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T03:33:36.557Z] [DEPLOY] #15 0.767 [2026-06-10T03:33:36.557Z] [DEPLOY] #15 0.767 > backend@0.0.1 build /app [2026-06-10T03:33:36.558Z] [DEPLOY] #15 0.767 > nest build [2026-06-10T03:33:36.558Z] [DEPLOY] #15 0.767 [2026-06-10T03:34:16.448Z] [DEPLOY] #15 DONE 40.7s [2026-06-10T03:34:16.605Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 total 80 [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 6 root root 4096 Jun 10 03:34 . [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 4 root root 4096 Jun 10 03:34 .. [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 3 root root 4096 Jun 10 03:34 __mocks__ [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 181 Jun 10 03:33 app.controller.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 1611 Jun 10 03:33 app.controller.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 436 Jun 10 03:33 app.controller.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 35 Jun 10 03:34 app.module.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 8972 Jun 10 03:34 app.module.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2525 Jun 10 03:34 app.module.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 60 Jun 10 03:33 app.service.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 981 Jun 10 03:33 app.service.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 281 Jun 10 03:33 app.service.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 4 root root 4096 Jun 10 03:33 common [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 11 Jun 10 03:34 main.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2914 Jun 10 03:34 main.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2491 Jun 10 03:34 main.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 58 root root 4096 Jun 10 03:34 modules [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 2 root root 4096 Jun 10 03:33 prisma [2026-06-10T03:34:16.932Z] [DEPLOY] #16 DONE 0.3s [2026-06-10T03:34:26.074Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T03:34:26.079Z] [DEPLOY] #17 CACHED [2026-06-10T03:34:26.079Z] [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-10T03:34:26.079Z] [DEPLOY] #18 CACHED [2026-06-10T03:34:26.079Z] [DEPLOY] #19 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T03:34:26.080Z] [DEPLOY] #19 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:34:26.080Z] [DEPLOY] #20 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #21 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T03:34:26.080Z] [DEPLOY] #21 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #22 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:34:26.080Z] [DEPLOY] #22 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T03:34:26.228Z] [DEPLOY] #23 CACHED [2026-06-10T03:34:26.229Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T03:34:26.565Z] [DEPLOY] #24 DONE 0.5s [2026-06-10T03:34:26.719Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T03:34:26.849Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T03:34:27.005Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T03:34:58.574Z] [DEPLOY] #26 DONE 31.7s [2026-06-10T03:34:58.743Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T03:34:58.743Z] [DEPLOY] #27 exporting layers [2026-06-10T03:35:18.493Z] [DEPLOY] #27 exporting layers 19.9s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting manifest sha256:2563fde0b0ccc2d8f7a41363d69bc2763c527e94b8fb10c3380234f18d61b01b 0.0s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting config sha256:d692e812a8fc528824eece32dc9dcb536e68696b4ab9e53fa7b04ff2c5142cb7 done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting attestation manifest sha256:2d626726bd2ca35e61c43e842b5f7573007629c29c5a8bea27ef352c0f5d471e 0.0s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting manifest list sha256:0f7fa1b892659dc7eda91b91109231456f21d27ee090fa71ac39b50d66179526 done [2026-06-10T03:35:18.715Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T03:35:18.715Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T03:35:24.337Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 5.8s done [2026-06-10T03:35:24.520Z] [DEPLOY] #27 DONE 25.8s [2026-06-10T03:35:24.605Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T03:35:24.713Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T03:35:24.898Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T03:35:24.899Z] [DEPLOY] #29 transferring dockerfile: 1.38kB 0.0s done [2026-06-10T03:35:24.899Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T03:35:24.899Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:35:25.183Z] [DEPLOY] #2 DONE 1.4s [2026-06-10T03:35:25.425Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:35:25.425Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:35:25.426Z] [DEPLOY] #3 CACHED [2026-06-10T03:35:25.426Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:35:25.738Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T03:35:25.739Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T03:35:26.014Z] [DEPLOY] #30 DONE 0.7s [2026-06-10T03:35:26.172Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T03:35:26.231Z] [DEPLOY] #31 transferring context: [2026-06-10T03:35:26.400Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T03:35:26.401Z] [DEPLOY] #31 DONE 0.2s [2026-06-10T03:35:27.081Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:35:27.082Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:35:27.082Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T03:35:27.082Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-10T03:35:27.082Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T03:35:27.082Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:35:27.082Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:35:27.082Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T03:35:27.114Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:35:27.225Z] [DEPLOY] #32 transferring context: 377.06kB 0.1s done [2026-06-10T03:35:27.225Z] [DEPLOY] #32 DONE 0.1s [2026-06-10T03:35:27.225Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:35:27.226Z] [DEPLOY] #34 CACHED [2026-06-10T03:35:27.226Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:35:27.226Z] [DEPLOY] #35 CACHED [2026-06-10T03:35:27.226Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-10T03:35:27.226Z] [DEPLOY] #10 CACHED [2026-06-10T03:35:27.226Z] [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-10T03:35:27.380Z] [DEPLOY] #36 CACHED [2026-06-10T03:35:27.380Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T03:35:27.541Z] [DEPLOY] #37 DONE 0.3s [2026-06-10T03:35:27.694Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 > frontend@1.0.0 build /app [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 > tsc && vite build [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 [2026-06-10T03:36:18.035Z] [DEPLOY] #38 50.49 vite v5.4.21 building for production... [2026-06-10T03:36:18.655Z] [DEPLOY] #38 51.11 transforming... [2026-06-10T03:36:18.757Z] [DEPLOY] #38 51.21 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T03:36:18.758Z] [DEPLOY] #38 51.21 npx update-browserslist-db@latest [2026-06-10T03:36:18.758Z] [DEPLOY] #38 51.21 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T03:36:40.880Z] [DEPLOY] #38 73.34 ✓ 4326 modules transformed. [2026-06-10T03:36:42.877Z] [DEPLOY] #38 75.33 rendering chunks... [2026-06-10T03:36:48.845Z] [DEPLOY] #38 81.30 computing gzip size... [2026-06-10T03:36:49.087Z] [DEPLOY] #38 81.54 dist/registerSW.js 0.13 kB [2026-06-10T03:36:49.087Z] [DEPLOY] #38 81.54 dist/manifest.webmanifest 0.54 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index-DFw90CBK.css 163.37 kB │ gzip: 24.94 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index.es-BxYGIoyk.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index-C4ZTbyEq.js 4,164.40 kB │ gzip: 1,081.31 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Using dynamic import() to code-split the application [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.55 ✓ built in 31.01s [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 PWA v1.2.0 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 Building src/sw.ts service worker ("es" format)... [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.57 vite v5.4.21 building for production... [2026-06-10T03:36:50.896Z] [DEPLOY] #38 83.35 transforming... [2026-06-10T03:36:51.018Z] [DEPLOY] #38 83.36 ✓ 1 modules transformed. [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.37 rendering chunks... [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 computing gzip size... [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 ✓ built in 1.81s [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 PWA v1.2.0 [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 mode injectManifest [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 format: es [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 precache 15 entries (4953.65 KiB) [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 files generated [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 dist/sw.js [2026-06-10T03:36:51.378Z] [DEPLOY] #38 DONE 83.8s [2026-06-10T03:36:55.359Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T03:36:55.359Z] [DEPLOY] #39 CACHED [2026-06-10T03:36:55.359Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T03:36:55.586Z] [DEPLOY] #40 CACHED [2026-06-10T03:36:55.586Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T03:36:55.586Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T03:36:55.586Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T03:36:55.586Z] [DEPLOY] #42 exporting layers [2026-06-10T03:36:55.651Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting manifest sha256:25875ea5bf9e97b311566464fbba1a9b88beb019b54d14c72948ec17ff78cd70 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting config sha256:6e617f53654b505afa5f565339ea1d38edf6712f4fc578f2f66aa7ddf9f2bcb8 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting attestation manifest sha256:f1b7ff5d0bfd27505570b72466d9b552f6c90b4942d8da97b14d356f561d6816 0.0s done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting manifest list sha256:029e2e9370281d91f0b42bca25fab73045b3b4056f48836f7b85d231f692abd4 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T03:36:55.941Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T03:36:55.946Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T03:36:55.953Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T03:36:55.954Z] [STDERR] backend Built [2026-06-10T03:36:55.954Z] [STDERR] frontend Built [2026-06-10T03:36:55.967Z] [DEPLOY] [2026-06-10 03:36:55] ✓ New images built successfully [2026-06-10T03:36:55.968Z] [DEPLOY] [2026-06-10 03:36:55] STEP: Step 5/8: Running database migrations... [2026-06-10T03:36:55.970Z] [DEPLOY] [2026-06-10 03:36:55] Checking for pending migrations... [2026-06-10T03:36:55.971Z] [DEPLOY] [2026-06-10 03:36:55] Applying schema changes... [2026-06-10T03:36:58.770Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:36:58.822Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T03:36:59.650Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice [2026-06-10T03:37:00.054Z] [DEPLOY] [2026-06-10 03:37:00] ✓ Database schema already in sync [2026-06-10T03:37:00.067Z] [DEPLOY] [2026-06-10 03:37:00] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T03:37:00.072Z] [DEPLOY] [2026-06-10 03:37:00] Updating backend container... [2026-06-10T03:37:00.515Z] [STDERR] Container clicknex-redis Running [2026-06-10T03:37:00.515Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T03:37:11.407Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T03:37:11.439Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T03:37:11.942Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T03:37:11.943Z] [STDERR] Container clicknex-backend Starting [2026-06-10T03:37:12.305Z] [STDERR] Container clicknex-backend Started [2026-06-10T03:37:17.415Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T03:37:19.493Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-10T03:37:21.556Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-10T03:37:23.611Z] [DEPLOY] [2026-06-10 03:37:23] ✓ Backend health check passed (healthy) [2026-06-10T03:37:23.613Z] [DEPLOY] [2026-06-10 03:37:23] Updating frontend container... [2026-06-10T03:37:23.815Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T03:37:24.521Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T03:37:24.610Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T03:37:24.909Z] [STDERR] Container clicknex-frontend Started [2026-06-10T03:37:24.919Z] [DEPLOY] [2026-06-10 03:37:24] ✓ New containers started [2026-06-10T03:37:24.921Z] [DEPLOY] [2026-06-10 03:37:24] STEP: Step 7/8: Running health checks... [2026-06-10T03:37:24.985Z] [DEPLOY] [2026-06-10 03:37:24] ✓ Backend health check passed (healthy) [2026-06-10T03:37:25.067Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T03:37:27.131Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T03:37:29.198Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T03:37:31.254Z] [DEPLOY] [2026-06-10 03:37:31] ✓ Frontend health check passed (healthy) [2026-06-10T03:37:31.255Z] [DEPLOY] [2026-06-10 03:37:31] ✓ All health checks passed [2026-06-10T03:37:31.255Z] [DEPLOY] [2026-06-10 03:37:31] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T03:37:33.563Z] [DEPLOY] [2026-06-10 03:37:33] ✓ Cleanup completed (disco: ?%) [2026-06-10T03:37:33.564Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:37:33.564Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T03:37:33.564Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:37:33.567Z] [DEPLOY] ║ Commit: d3d452a ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ Time: 2026-06-10 03:37:33 ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ Services: ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T03:37:33.569Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:37:33.572Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T03:37:33.574Z] [INFO] ====================================================== [2026-06-10T03:37:33.574Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.12 em 524s [2026-06-10T03:37:33.574Z] [INFO] ======================================================