[2026-06-02T20:33:47.652Z] [INFO] ====================================================== [2026-06-02T20:33:47.654Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-02T20:33:47.657Z] [INFO] Commit: 34b9a7f6f3af3bb2ee9c3da88d1c72c8cf97894b [2026-06-02T20:33:47.657Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-02T20:33:47.658Z] [INFO] Branch: main [2026-06-02T20:33:47.659Z] [INFO] Disparado por: jhon4than (CI) [2026-06-02T20:33:47.662Z] [INFO] ====================================================== [2026-06-02T20:33:47.665Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-02T20:33:47.666Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-02T20:33:47.711Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T20:33:47.712Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-02T20:33:47.713Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T20:33:47.714Z] [DEPLOY] [2026-06-02 20:33:47] STEP: Step 1/8: Pulling latest code from repository... [2026-06-02T20:33:49.817Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-02T20:33:49.818Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-02T20:33:49.818Z] [STDERR] d39f1de..34b9a7f main -> origin/main [2026-06-02T20:33:49.934Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T20:33:49.935Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-02T20:33:49.936Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-02T20:33:49.937Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-02T20:33:50.021Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: → Stash salvo (veja: git stash list) [2026-06-02T20:33:50.023Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_203347.patch [2026-06-02T20:33:50.025Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_203347.patch' [2026-06-02T20:33:50.035Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T20:33:50.037Z] [DEPLOY] [2026-06-02 20:33:50] Deploy do commit validado pelo CI: 34b9a7f6f3af3bb2ee9c3da88d1c72c8cf97894b [2026-06-02T20:33:50.084Z] [STDERR] Reset branch 'main' [2026-06-02T20:33:50.086Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-02T20:33:50.088Z] [DEPLOY] [2026-06-02 20:33:50] ✓ Code updated to latest version [2026-06-02T20:33:50.089Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Step 2/8: Backing up current state... [2026-06-02T20:33:50.109Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Creating backup of current state... [2026-06-02T20:33:50.895Z] [DEPLOY] [2026-06-02 20:33:50] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-02T20:33:50.896Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-02T20:33:50.905Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-02T20:33:50.905Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-02T20:33:50.906Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-02T20:33:50.906Z] [DEPLOY] Database: saas_crm [2026-06-02T20:33:50.907Z] [DEPLOY] Host: localhost:5432 [2026-06-02T20:33:50.907Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-02T20:33:50.908Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-02T20:37:55.588Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz (2.4G) [2026-06-02T20:37:55.592Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-02T20:37:55.596Z] [DEPLOY] removendo antigo: backup_20260602_030750.sql.gz [2026-06-02T20:37:55.617Z] [DEPLOY] Current backups: [2026-06-02T20:37:55.619Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 16:06 /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz [2026-06-02T20:37:55.619Z] [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-02T20:37:55.620Z] [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-02T20:37:55.621Z] [DEPLOY] Backup completed! [2026-06-02T20:37:55.623Z] [DEPLOY] [2026-06-02 20:37:55] ✓ Database backup completed [2026-06-02T20:37:55.623Z] [DEPLOY] [2026-06-02 20:37:55] STEP: Step 4/8: Building new Docker images... [2026-06-02T20:37:55.628Z] [DEPLOY] [2026-06-02 20:37:55] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-02T20:37:56.083Z] [DEPLOY] [2026-06-02 20:37:56] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-02T20:37:56.138Z] [DEPLOY] [2026-06-02 20:37:56] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-02T20:37:57.034Z] [STDERR] time="2026-06-02T20:37:57Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-02T20:37:57.507Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-02T20:37:57.508Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-02T20:37:57.509Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-02T20:37:57.515Z] [DEPLOY] #1 DONE 0.1s [2026-06-02T20:37:57.516Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T20:37:58.462Z] [DEPLOY] #2 DONE 1.0s [2026-06-02T20:37:58.600Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T20:37:58.601Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-02T20:37:58.792Z] [DEPLOY] #3 CACHED [2026-06-02T20:37:59.210Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T20:37:59.953Z] [DEPLOY] #4 DONE 0.7s [2026-06-02T20:38:00.107Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-02T20:38:00.108Z] [DEPLOY] #5 transferring context: 304B done [2026-06-02T20:38:00.109Z] [DEPLOY] #5 DONE 0.0s [2026-06-02T20:38:00.304Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T20:38:00.306Z] [DEPLOY] #6 DONE 0.0s [2026-06-02T20:38:00.307Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T20:38:00.310Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T20:38:00.496Z] [DEPLOY] #7 DONE 0.2s [2026-06-02T20:38:00.498Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T20:38:00.779Z] [DEPLOY] #6 transferring context: 131.68kB 0.4s done [2026-06-02T20:38:00.920Z] [DEPLOY] #6 DONE 0.5s [2026-06-02T20:38:00.921Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:38:00.922Z] [DEPLOY] #8 CACHED [2026-06-02T20:38:00.922Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:38:00.923Z] [DEPLOY] #9 CACHED [2026-06-02T20:38:00.924Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-02T20:38:00.924Z] [DEPLOY] #10 CACHED [2026-06-02T20:38:00.925Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-02T20:38:00.926Z] [DEPLOY] #11 CACHED [2026-06-02T20:38:00.927Z] [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-02T20:38:01.082Z] [DEPLOY] #12 CACHED [2026-06-02T20:38:01.083Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-02T20:38:02.613Z] [DEPLOY] #13 DONE 1.7s [2026-06-02T20:38:02.767Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-02T20:38:06.342Z] [DEPLOY] #14 3.724 Prisma schema loaded from prisma/schema.prisma [2026-06-02T20:38:10.451Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.452Z] [DEPLOY] #14 7.834 ✔ 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.35s [2026-06-02T20:38:10.452Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.454Z] [DEPLOY] #14 7.834 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-02T20:38:10.455Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.456Z] [DEPLOY] #14 7.834 Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate [2026-06-02T20:38:10.457Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.921Z] [DEPLOY] #14 DONE 8.3s [2026-06-02T20:38:11.081Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-02T20:38:11.861Z] [DEPLOY] #15 0.933 [2026-06-02T20:38:11.862Z] [DEPLOY] #15 0.933 > backend@0.0.1 build /app [2026-06-02T20:38:11.864Z] [DEPLOY] #15 0.933 > nest build [2026-06-02T20:38:11.865Z] [DEPLOY] #15 0.933 [2026-06-02T20:38:56.268Z] [DEPLOY] #15 DONE 45.3s [2026-06-02T20:38:56.426Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-02T20:38:56.559Z] [DEPLOY] #16 0.283 total 80 [2026-06-02T20:38:56.724Z] [DEPLOY] #16 0.285 drwxr-xr-x 6 root root 4096 Jun 2 20:38 . [2026-06-02T20:38:56.724Z] [DEPLOY] #16 0.285 drwxr-xr-x 4 root root 4096 Jun 2 20:38 .. [2026-06-02T20:38:56.725Z] [DEPLOY] #16 0.285 drwxr-xr-x 3 root root 4096 Jun 2 20:38 __mocks__ [2026-06-02T20:38:56.726Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 181 Jun 2 20:38 app.controller.d.ts [2026-06-02T20:38:56.727Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 1611 Jun 2 20:38 app.controller.js [2026-06-02T20:38:56.727Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 436 Jun 2 20:38 app.controller.js.map [2026-06-02T20:38:56.728Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 35 Jun 2 20:38 app.module.d.ts [2026-06-02T20:38:56.728Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 8972 Jun 2 20:38 app.module.js [2026-06-02T20:38:56.730Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2525 Jun 2 20:38 app.module.js.map [2026-06-02T20:38:56.730Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 60 Jun 2 20:38 app.service.d.ts [2026-06-02T20:38:56.731Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 981 Jun 2 20:38 app.service.js [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 281 Jun 2 20:38 app.service.js.map [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 drwxr-xr-x 4 root root 4096 Jun 2 20:38 common [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 11 Jun 2 20:38 main.d.ts [2026-06-02T20:38:56.733Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2914 Jun 2 20:38 main.js [2026-06-02T20:38:56.733Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2491 Jun 2 20:38 main.js.map [2026-06-02T20:38:56.737Z] [DEPLOY] #16 0.285 drwxr-xr-x 58 root root 4096 Jun 2 20:38 modules [2026-06-02T20:38:56.737Z] [DEPLOY] #16 0.285 drwxr-xr-x 2 root root 4096 Jun 2 20:38 prisma [2026-06-02T20:38:56.738Z] [DEPLOY] #16 DONE 0.3s [2026-06-02T20:39:08.853Z] [DEPLOY] #17 [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-02T20:39:08.854Z] [DEPLOY] #17 CACHED [2026-06-02T20:39:08.855Z] [DEPLOY] #18 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-02T20:39:08.855Z] [DEPLOY] #18 CACHED [2026-06-02T20:39:08.856Z] [DEPLOY] #19 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:39:08.857Z] [DEPLOY] #19 CACHED [2026-06-02T20:39:08.857Z] [DEPLOY] #20 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-02T20:39:08.858Z] [DEPLOY] #20 CACHED [2026-06-02T20:39:08.858Z] [DEPLOY] #21 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:39:08.859Z] [DEPLOY] #21 CACHED [2026-06-02T20:39:08.859Z] [DEPLOY] #22 [backend production 7/12] COPY prisma ./prisma/ [2026-06-02T20:39:08.860Z] [DEPLOY] #22 CACHED [2026-06-02T20:39:08.860Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-02T20:39:09.013Z] [DEPLOY] #23 CACHED [2026-06-02T20:39:09.013Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-02T20:39:09.557Z] [DEPLOY] #24 DONE 0.7s [2026-06-02T20:39:09.714Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-02T20:39:09.921Z] [DEPLOY] #25 DONE 0.4s [2026-06-02T20:39:10.080Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-02T20:39:52.456Z] [DEPLOY] #26 DONE 42.5s [2026-06-02T20:39:52.624Z] [DEPLOY] #27 [backend] exporting to image [2026-06-02T20:39:52.625Z] [DEPLOY] #27 exporting layers [2026-06-02T20:40:14.027Z] [DEPLOY] #27 exporting layers 21.6s done [2026-06-02T20:40:14.243Z] [DEPLOY] #27 exporting manifest sha256:5bb37edbc4720a12db16f9ccb43114f637d1474797ad00809611abbdd40119c8 done [2026-06-02T20:40:14.243Z] [DEPLOY] #27 exporting config sha256:402447c5f5cab75c0e7a0c25726687237adf7af018b275b3d3eebacf92db9132 done [2026-06-02T20:40:14.244Z] [DEPLOY] #27 exporting attestation manifest sha256:75fd0eeb3b73d495191a8f00ff7dec5bab706dd78adc3563f462e18ee36335b1 0.0s done [2026-06-02T20:40:14.244Z] [DEPLOY] #27 exporting manifest list sha256:ef49a38211dfcb34a0ace66631848df906d3eef1a9dfe80ee9b4129609b3e272 done [2026-06-02T20:40:14.246Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-02T20:40:14.246Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-02T20:40:20.890Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.8s done [2026-06-02T20:40:21.086Z] [DEPLOY] #27 DONE 28.5s [2026-06-02T20:40:21.220Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-02T20:40:21.331Z] [DEPLOY] #28 DONE 0.0s [2026-06-02T20:40:21.332Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-02T20:40:21.332Z] [DEPLOY] #29 transferring dockerfile: 30B 0.0s [2026-06-02T20:40:21.508Z] [DEPLOY] #29 transferring dockerfile: 1.38kB 0.0s done [2026-06-02T20:40:21.509Z] [DEPLOY] #29 DONE 0.0s [2026-06-02T20:40:21.510Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T20:40:21.812Z] [DEPLOY] #2 DONE 1.4s [2026-06-02T20:40:21.920Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T20:40:21.921Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T20:40:21.922Z] [DEPLOY] #3 CACHED [2026-06-02T20:40:21.925Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T20:40:22.403Z] [DEPLOY] #4 DONE 1.2s [2026-06-02T20:40:22.404Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T20:40:22.705Z] [DEPLOY] #30 DONE 0.8s [2026-06-02T20:40:22.809Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-02T20:40:22.809Z] [DEPLOY] #31 transferring context: [2026-06-02T20:40:22.969Z] [DEPLOY] #31 transferring context: 194B done [2026-06-02T20:40:22.970Z] [DEPLOY] #31 DONE 0.1s [2026-06-02T20:40:23.512Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-02T20:40:23.513Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-02T20:40:23.513Z] [DEPLOY] #32 DONE 0.0s [2026-06-02T20:40:23.514Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T20:40:23.515Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-02T20:40:23.515Z] [DEPLOY] #7 DONE 0.3s [2026-06-02T20:40:23.516Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-02T20:40:23.518Z] [DEPLOY] #33 transferring context: 90.03kB 0.1s done [2026-06-02T20:40:23.519Z] [DEPLOY] #33 DONE 0.1s [2026-06-02T20:40:23.683Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:40:23.684Z] [DEPLOY] #34 CACHED [2026-06-02T20:40:23.684Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:40:23.685Z] [DEPLOY] #35 CACHED [2026-06-02T20:40:23.685Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-02T20:40:23.686Z] [DEPLOY] #10 CACHED [2026-06-02T20:40:23.686Z] [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-02T20:40:23.687Z] [DEPLOY] #36 CACHED [2026-06-02T20:40:23.688Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-02T20:40:23.821Z] [DEPLOY] #37 DONE 0.3s [2026-06-02T20:40:23.974Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-02T20:40:24.622Z] [DEPLOY] #38 0.799 [2026-06-02T20:40:24.623Z] [DEPLOY] #38 0.799 > frontend@1.0.0 build /app [2026-06-02T20:40:24.625Z] [DEPLOY] #38 0.799 > tsc && vite build [2026-06-02T20:40:24.626Z] [DEPLOY] #38 0.799 [2026-06-02T20:41:15.082Z] [DEPLOY] #38 51.26 vite v5.4.21 building for production... [2026-06-02T20:41:15.844Z] [DEPLOY] #38 52.02 transforming... [2026-06-02T20:41:16.071Z] [DEPLOY] #38 52.10 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-02T20:41:16.072Z] [DEPLOY] #38 52.10 npx update-browserslist-db@latest [2026-06-02T20:41:16.074Z] [DEPLOY] #38 52.10 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-02T20:41:40.476Z] [DEPLOY] #38 76.65 ✓ 4325 modules transformed. [2026-06-02T20:41:42.279Z] [DEPLOY] #38 78.46 rendering chunks... [2026-06-02T20:41:46.206Z] [DEPLOY] #38 82.38 computing gzip size... [2026-06-02T20:41:47.097Z] [DEPLOY] #38 83.27 dist/registerSW.js 0.13 kB [2026-06-02T20:41:47.226Z] [DEPLOY] #38 83.27 dist/manifest.webmanifest 0.54 kB [2026-06-02T20:41:47.227Z] [DEPLOY] #38 83.27 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-02T20:41:47.228Z] [DEPLOY] #38 83.27 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-02T20:41:47.229Z] [DEPLOY] #38 83.28 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-02T20:41:47.230Z] [DEPLOY] #38 83.28 dist/assets/index.es-CeNknJbp.js 150.69 kB │ gzip: 51.55 kB [2026-06-02T20:41:47.231Z] [DEPLOY] #38 83.28 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-02T20:41:47.234Z] [DEPLOY] #38 83.28 dist/assets/index-C1TIQwLE.js 4,151.82 kB │ gzip: 1,078.14 kB [2026-06-02T20:41:47.240Z] [DEPLOY] #38 83.28 [2026-06-02T20:41:47.242Z] [DEPLOY] #38 83.28 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-02T20:41:47.243Z] [DEPLOY] #38 83.28 - Using dynamic import() to code-split the application [2026-06-02T20:41:47.244Z] [DEPLOY] #38 83.28 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-02T20:41:47.245Z] [DEPLOY] #38 83.28 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-02T20:41:47.246Z] [DEPLOY] #38 83.28 ✓ built in 31.99s [2026-06-02T20:41:47.246Z] [DEPLOY] #38 83.40 [2026-06-02T20:41:47.247Z] [DEPLOY] #38 83.40 PWA v1.2.0 [2026-06-02T20:41:47.248Z] [DEPLOY] #38 83.40 Building src/sw.ts service worker ("es" format)... [2026-06-02T20:41:47.414Z] [DEPLOY] #38 83.44 vite v5.4.21 building for production... [2026-06-02T20:41:49.656Z] [DEPLOY] #38 85.83 transforming... [2026-06-02T20:41:49.811Z] [DEPLOY] #38 85.84 ✓ 1 modules transformed. [2026-06-02T20:41:49.815Z] [DEPLOY] #38 85.84 rendering chunks... [2026-06-02T20:41:49.825Z] [DEPLOY] #38 85.85 computing gzip size... [2026-06-02T20:41:49.835Z] [DEPLOY] #38 85.85 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-02T20:41:49.836Z] [DEPLOY] #38 85.85 ✓ built in 2.39s [2026-06-02T20:41:49.836Z] [DEPLOY] #38 85.99 [2026-06-02T20:41:49.837Z] [DEPLOY] #38 85.99 PWA v1.2.0 [2026-06-02T20:41:49.840Z] [DEPLOY] #38 85.99 mode injectManifest [2026-06-02T20:41:49.840Z] [DEPLOY] #38 85.99 format: es [2026-06-02T20:41:49.841Z] [DEPLOY] #38 85.99 precache 15 entries (4941.14 KiB) [2026-06-02T20:41:49.842Z] [DEPLOY] #38 85.99 files generated [2026-06-02T20:41:49.843Z] [DEPLOY] #38 85.99 dist/sw.js [2026-06-02T20:41:50.242Z] [DEPLOY] #38 DONE 86.4s [2026-06-02T20:41:53.559Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-02T20:41:53.559Z] [DEPLOY] #39 CACHED [2026-06-02T20:41:53.561Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-02T20:41:53.797Z] [DEPLOY] #40 CACHED [2026-06-02T20:41:53.798Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-02T20:41:53.799Z] [DEPLOY] #41 DONE 0.1s [2026-06-02T20:41:53.799Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-02T20:41:53.800Z] [DEPLOY] #42 exporting layers [2026-06-02T20:41:53.873Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-02T20:41:53.980Z] [DEPLOY] #42 exporting manifest sha256:974e7667f80e2f805336b08bc6d6fa4c00e0d6548f2b66c02e3f1f6c1c2650f4 0.0s done [2026-06-02T20:41:53.981Z] [DEPLOY] #42 exporting config sha256:71f162efb1279a30a221204b39d5cde02f70672dcf4f1f9fe918b1c8d254cb76 done [2026-06-02T20:41:53.981Z] [DEPLOY] #42 exporting attestation manifest sha256:8c83024d9fa0972ee5b6a6c3d7fcf1a80e360bd0052f520379590ac4a594757d 0.0s done [2026-06-02T20:41:53.982Z] [DEPLOY] #42 exporting manifest list sha256:9bec2ec0362eec2f2c02ecb7bd55e2743c30646613db8f2f4cdd4077fe9c91e8 done [2026-06-02T20:41:53.983Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-02T20:41:53.983Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-02T20:41:54.168Z] [DEPLOY] #42 DONE 0.4s [2026-06-02T20:41:54.194Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-02T20:41:54.219Z] [DEPLOY] #43 DONE 0.0s [2026-06-02T20:41:54.220Z] [STDERR] backend Built [2026-06-02T20:41:54.221Z] [STDERR] frontend Built [2026-06-02T20:41:54.229Z] [DEPLOY] [2026-06-02 20:41:54] ✓ New images built successfully [2026-06-02T20:41:54.231Z] [DEPLOY] [2026-06-02 20:41:54] STEP: Step 5/8: Running database migrations... [2026-06-02T20:41:54.233Z] [DEPLOY] [2026-06-02 20:41:54] Checking for pending migrations... [2026-06-02T20:41:54.234Z] [DEPLOY] [2026-06-02 20:41:54] Applying schema changes... [2026-06-02T20:41:57.093Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-02T20:41:57.132Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-02T20:41:57.704Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-02T20:41:57.757Z] [DEPLOY] npm notice [2026-06-02T20:41:57.757Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-02T20:41:57.759Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-02T20:41:57.759Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-02T20:41:57.760Z] [DEPLOY] npm notice [2026-06-02T20:41:58.023Z] [DEPLOY] [2026-06-02 20:41:58] ✓ Database schema already in sync [2026-06-02T20:41:58.025Z] [DEPLOY] [2026-06-02 20:41:58] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-02T20:41:58.027Z] [DEPLOY] [2026-06-02 20:41:58] Updating backend container... [2026-06-02T20:41:58.264Z] [STDERR] Container clicknex-redis Running [2026-06-02T20:41:58.266Z] [STDERR] Container clicknex-backend Recreate [2026-06-02T20:42:08.947Z] [STDERR] Container clicknex-backend Recreated [2026-06-02T20:42:08.991Z] [STDERR] Container clicknex-redis Waiting [2026-06-02T20:42:09.493Z] [STDERR] Container clicknex-redis Healthy [2026-06-02T20:42:09.494Z] [STDERR] Container clicknex-backend Starting [2026-06-02T20:42:09.886Z] [STDERR] Container clicknex-backend Started [2026-06-02T20:42:14.959Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-02T20:42:17.048Z] [DEPLOY] [2026-06-02 20:42:17] ✓ Backend health check passed (healthy) [2026-06-02T20:42:17.052Z] [DEPLOY] [2026-06-02 20:42:17] Updating frontend container... [2026-06-02T20:42:17.390Z] [STDERR] Container clicknex-frontend Recreate [2026-06-02T20:42:18.022Z] [STDERR] Container clicknex-frontend Recreated [2026-06-02T20:42:18.115Z] [STDERR] Container clicknex-frontend Starting [2026-06-02T20:42:18.398Z] [STDERR] Container clicknex-frontend Started [2026-06-02T20:42:18.415Z] [DEPLOY] [2026-06-02 20:42:18] ✓ New containers started [2026-06-02T20:42:18.417Z] [DEPLOY] [2026-06-02 20:42:18] STEP: Step 7/8: Running health checks... [2026-06-02T20:42:18.478Z] [DEPLOY] [2026-06-02 20:42:18] ✓ Backend health check passed (healthy) [2026-06-02T20:42:18.538Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-02T20:42:20.614Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-02T20:42:22.669Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-02T20:42:24.737Z] [DEPLOY] [2026-06-02 20:42:24] ✓ Frontend health check passed (healthy) [2026-06-02T20:42:24.740Z] [DEPLOY] [2026-06-02 20:42:24] ✓ All health checks passed [2026-06-02T20:42:24.742Z] [DEPLOY] [2026-06-02 20:42:24] STEP: Step 8/8: Cleaning up old resources... [2026-06-02T20:42:26.867Z] [DEPLOY] [2026-06-02 20:42:26] ✓ Cleanup completed (disco: ?%) [2026-06-02T20:42:26.870Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T20:42:26.871Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-02T20:42:26.874Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T20:42:26.875Z] [DEPLOY] ║ Commit: 34b9a7f ║ [2026-06-02T20:42:26.876Z] [DEPLOY] ║ Time: 2026-06-02 20:42:26 ║ [2026-06-02T20:42:26.877Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T20:42:26.878Z] [DEPLOY] ║ Services: ║ [2026-06-02T20:42:26.878Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-02T20:42:26.879Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-02T20:42:26.880Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T20:42:26.881Z] [INFO] Deploy script encerrado com código: 0 [2026-06-02T20:42:26.884Z] [INFO] ====================================================== [2026-06-02T20:42:26.885Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 519s [2026-06-02T20:42:26.886Z] [INFO] ======================================================