[2026-06-09T23:14:35.970Z] [INFO] ====================================================== [2026-06-09T23:14:35.974Z] [INFO] DEPLOY INICIADO — v1.0.10 [2026-06-09T23:14:35.975Z] [INFO] Commit: c42c931cd099d6923c2bdc8bd9f3367b14fe5315 [2026-06-09T23:14:35.975Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-09T23:14:35.975Z] [INFO] Branch: main [2026-06-09T23:14:35.975Z] [INFO] Disparado por: jhon4than (CI) [2026-06-09T23:14:35.975Z] [INFO] ====================================================== [2026-06-09T23:14:35.976Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-09T23:14:35.976Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-09T23:14:36.015Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T23:14:36.015Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-09T23:14:36.015Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T23:14:36.020Z] [DEPLOY] [2026-06-09 23:14:36] STEP: Step 1/8: Pulling latest code from repository... [2026-06-09T23:14:37.961Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-09T23:14:37.961Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-09T23:14:37.961Z] [STDERR] be4b30b..c42c931 main -> origin/main [2026-06-09T23:14:38.081Z] [DEPLOY] [2026-06-09 23:14:38] Deploy do commit validado pelo CI: c42c931cd099d6923c2bdc8bd9f3367b14fe5315 [2026-06-09T23:14:38.117Z] [STDERR] Reset branch 'main' [2026-06-09T23:14:38.118Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-09T23:14:38.120Z] [DEPLOY] [2026-06-09 23:14:38] ✓ Code updated to latest version [2026-06-09T23:14:38.121Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Step 2/8: Backing up current state... [2026-06-09T23:14:38.122Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Creating backup of current state... [2026-06-09T23:14:38.929Z] [DEPLOY] [2026-06-09 23:14:38] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-09T23:14:38.931Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-09T23:14:38.935Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-09T23:14:38.935Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-09T23:14:38.935Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-09T23:14:38.935Z] [DEPLOY] Database: saas_crm [2026-06-09T23:14:38.935Z] [DEPLOY] Host: localhost:5432 [2026-06-09T23:14:38.935Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-09T23:14:38.935Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-09T23:19:37.533Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz (2.9G) [2026-06-09T23:19:37.536Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-09T23:19:37.541Z] [DEPLOY] removendo antigo: backup_20260606_034149.sql.gz [2026-06-09T23:19:37.566Z] [DEPLOY] Current backups: [2026-06-09T23:19:37.568Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 19:24 /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz [2026-06-09T23:19:37.569Z] [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-09T23:19:37.569Z] [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-09T23:19:37.569Z] [DEPLOY] Backup completed! [2026-06-09T23:19:37.570Z] [DEPLOY] [2026-06-09 23:19:37] ✓ Database backup completed [2026-06-09T23:19:37.571Z] [DEPLOY] [2026-06-09 23:19:37] STEP: Step 4/8: Building new Docker images... [2026-06-09T23:19:37.572Z] [DEPLOY] [2026-06-09 23:19:37] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-09T23:19:38.244Z] [DEPLOY] [2026-06-09 23:19:38] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-09T23:19:38.299Z] [DEPLOY] [2026-06-09 23:19:38] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-09T23:19:39.198Z] [STDERR] time="2026-06-09T23:19:39Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-09T23:19:39.718Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-09T23:19:39.719Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-09T23:19:39.720Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-09T23:19:39.720Z] [DEPLOY] #1 DONE 0.1s [2026-06-09T23:19:39.720Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T23:19:40.481Z] [DEPLOY] #2 DONE 0.9s [2026-06-09T23:19:40.695Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T23:19:40.695Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T23:19:40.695Z] [DEPLOY] #3 CACHED [2026-06-09T23:19:41.069Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T23:19:41.774Z] [DEPLOY] #4 DONE 0.7s [2026-06-09T23:19:41.907Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-09T23:19:41.908Z] [DEPLOY] #5 transferring context: 304B done [2026-06-09T23:19:41.908Z] [DEPLOY] #5 DONE 0.0s [2026-06-09T23:19:41.908Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T23:19:41.908Z] [DEPLOY] #6 DONE 0.0s [2026-06-09T23:19:41.908Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T23:19:41.908Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T23:19:41.909Z] [DEPLOY] #7 DONE 0.0s [2026-06-09T23:19:42.052Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T23:19:42.191Z] [DEPLOY] #6 transferring context: 93.83kB 0.2s done [2026-06-09T23:19:42.191Z] [DEPLOY] #6 DONE 0.3s [2026-06-09T23:19:42.308Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:42.308Z] [DEPLOY] #8 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #9 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T23:19:42.308Z] [DEPLOY] #9 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #10 [backend builder 8/10] RUN pnpm prisma generate [2026-06-09T23:19:42.308Z] [DEPLOY] #10 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #11 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:42.309Z] [DEPLOY] #11 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #12 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-09T23:19:42.309Z] [DEPLOY] #12 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #13 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:42.309Z] [DEPLOY] #13 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #14 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-09T23:19:42.309Z] [DEPLOY] #14 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #15 [backend production 9/12] RUN pnpm prisma generate [2026-06-09T23:19:42.309Z] [DEPLOY] #15 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #16 [backend builder 7/10] COPY . . [2026-06-09T23:19:42.309Z] [DEPLOY] #16 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #17 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:42.309Z] [DEPLOY] #17 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #18 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-09T23:19:42.309Z] [DEPLOY] #18 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #19 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T23:19:42.309Z] [DEPLOY] #19 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #20 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-09T23:19:42.309Z] [DEPLOY] #20 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #21 [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-09T23:19:42.309Z] [DEPLOY] #21 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #22 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-09T23:19:42.309Z] [DEPLOY] #22 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #23 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T23:19:42.309Z] [DEPLOY] #23 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-09T23:19:42.309Z] [DEPLOY] #24 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #25 [backend builder 2/10] WORKDIR /app [2026-06-09T23:19:42.309Z] [DEPLOY] #25 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-09T23:19:42.309Z] [DEPLOY] #26 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #27 [backend] exporting to image [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting layers 0.0s done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting manifest sha256:0baf590b5c2c1facb3ee2b378f010c9724d8a291a9dc02acfc774bb55a859929 done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting config sha256:1a891d42708c0703a4ac0b608d5b2b6f4255b3a434aa00eb1b8f5ae267cb90e9 done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting attestation manifest sha256:4b4ff4ecf4d5b23db845cb479945fd95ed19beb84d8f677e44610004345d9cf4 [2026-06-09T23:19:42.424Z] [DEPLOY] #27 exporting attestation manifest sha256:4b4ff4ecf4d5b23db845cb479945fd95ed19beb84d8f677e44610004345d9cf4 0.0s done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 exporting manifest list sha256:7116c6d6a16f2a50b09bfffc85ec079281051362512ef950833c6205f56ad186 0.1s done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 0.0s done [2026-06-09T23:19:42.623Z] [DEPLOY] #27 DONE 0.2s [2026-06-09T23:19:42.735Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-09T23:19:42.976Z] [DEPLOY] #28 DONE 0.0s [2026-06-09T23:19:42.979Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-09T23:19:42.979Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-09T23:19:42.979Z] [DEPLOY] #29 DONE 0.0s [2026-06-09T23:19:42.979Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T23:19:43.050Z] [DEPLOY] #2 DONE 1.1s [2026-06-09T23:19:43.181Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T23:19:43.182Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T23:19:43.182Z] [DEPLOY] #3 CACHED [2026-06-09T23:19:43.182Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T23:19:43.385Z] [DEPLOY] #4 DONE 0.9s [2026-06-09T23:19:43.386Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T23:19:43.876Z] [DEPLOY] #30 DONE 0.7s [2026-06-09T23:19:43.988Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T23:19:43.988Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T23:19:43.988Z] [DEPLOY] #31 DONE 0.0s [2026-06-09T23:19:43.988Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T23:19:43.988Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T23:19:43.988Z] [DEPLOY] #7 DONE 0.1s [2026-06-09T23:19:43.988Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T23:19:43.988Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-09T23:19:43.989Z] [DEPLOY] #32 DONE 0.0s [2026-06-09T23:19:43.989Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T23:19:44.105Z] [DEPLOY] #33 transferring context: 82.64kB 0.1s done [2026-06-09T23:19:44.105Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T23:19:44.105Z] [DEPLOY] #34 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:44.105Z] [DEPLOY] #34 CACHED [2026-06-09T23:19:44.105Z] [DEPLOY] #35 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:44.105Z] [DEPLOY] #35 CACHED [2026-06-09T23:19:44.105Z] [DEPLOY] #25 [frontend builder 2/7] WORKDIR /app [2026-06-09T23:19:44.105Z] [DEPLOY] #25 CACHED [2026-06-09T23:19:44.105Z] [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-09T23:19:44.261Z] [DEPLOY] #36 CACHED [2026-06-09T23:19:44.261Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T23:19:44.480Z] [DEPLOY] #37 DONE 0.4s [2026-06-09T23:19:44.635Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T23:19:46.385Z] [DEPLOY] #38 1.901 [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 > frontend@1.0.0 build /app [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 > tsc && vite build [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 [2026-06-09T23:20:42.177Z] [DEPLOY] #38 57.69 vite v5.4.21 building for production... [2026-06-09T23:20:42.933Z] [DEPLOY] #38 58.45 transforming... [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 npx update-browserslist-db@latest [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T23:21:06.983Z] [DEPLOY] #38 82.50 ✓ 4326 modules transformed. [2026-06-09T23:21:08.473Z] [DEPLOY] #38 83.99 rendering chunks... [2026-06-09T23:21:10.133Z] [DEPLOY] #38 85.65 computing gzip size... [2026-06-09T23:21:10.251Z] [DEPLOY] #38 85.76 dist/registerSW.js 0.13 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/manifest.webmanifest 0.54 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index-B5Cv6OLG.css 163.31 kB │ gzip: 24.93 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index.es-DRmcNVdK.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index-pyQB7Agw.js 4,161.70 kB │ gzip: 1,080.52 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Using dynamic import() to code-split the application [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 ✓ built in 27.38s [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 PWA v1.2.0 [2026-06-09T23:21:10.413Z] [DEPLOY] #38 85.77 Building src/sw.ts service worker ("es" format)... [2026-06-09T23:21:10.413Z] [DEPLOY] #38 85.78 vite v5.4.21 building for production... [2026-06-09T23:21:11.707Z] [DEPLOY] #38 87.22 transforming... [2026-06-09T23:21:11.880Z] [DEPLOY] #38 87.23 ✓ 1 modules transformed. [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 rendering chunks... [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 computing gzip size... [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 ✓ built in 1.47s [2026-06-09T23:21:11.965Z] [DEPLOY] #38 87.48 [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 PWA v1.2.0 [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 mode injectManifest [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 format: es [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 precache 15 entries (4950.94 KiB) [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 files generated [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 dist/sw.js [2026-06-09T23:21:12.333Z] [DEPLOY] #38 DONE 87.8s [2026-06-09T23:21:21.576Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T23:21:21.577Z] [DEPLOY] #39 CACHED [2026-06-09T23:21:21.577Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T23:21:21.678Z] [DEPLOY] #40 CACHED [2026-06-09T23:21:21.679Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T23:21:21.679Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T23:21:21.839Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T23:21:21.840Z] [DEPLOY] #42 exporting layers [2026-06-09T23:21:21.935Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting manifest sha256:293fa82276d7edbb36b772f2a888dcdbe8d51d733e63461434e1509c277753cf done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting config sha256:ceaff17fedc92031fb3a13a44b874ea424fe21584093a23295da0a5f570012e7 done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting attestation manifest sha256:5bc5f2a8cd1b1a0504cc56e6e2c81c63da480be2616afb6efd3dbf828ff849f9 0.0s done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting manifest list sha256:03b9966475a170b7bc91c9cce0c3fd99d3923469ba2fdb42c05a24e2b9909795 done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-09T23:21:22.237Z] [DEPLOY] #42 DONE 0.4s [2026-06-09T23:21:22.237Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T23:21:22.249Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T23:21:22.250Z] [STDERR] backend Built [2026-06-09T23:21:22.250Z] [STDERR] frontend Built [2026-06-09T23:21:22.262Z] [DEPLOY] [2026-06-09 23:21:22] ✓ New images built successfully [2026-06-09T23:21:22.263Z] [DEPLOY] [2026-06-09 23:21:22] STEP: Step 5/8: Running database migrations... [2026-06-09T23:21:22.264Z] [DEPLOY] [2026-06-09 23:21:22] Checking for pending migrations... [2026-06-09T23:21:22.265Z] [DEPLOY] [2026-06-09 23:21:22] Applying schema changes... [2026-06-09T23:21:24.910Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T23:21:24.948Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T23:21:25.579Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice [2026-06-09T23:21:25.897Z] [DEPLOY] [2026-06-09 23:21:25] ✓ Database schema already in sync [2026-06-09T23:21:25.899Z] [DEPLOY] [2026-06-09 23:21:25] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T23:21:25.900Z] [DEPLOY] [2026-06-09 23:21:25] Updating backend container... [2026-06-09T23:21:26.137Z] [STDERR] Container clicknex-redis Running [2026-06-09T23:21:26.137Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T23:21:36.994Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T23:21:37.038Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T23:21:37.542Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T23:21:37.542Z] [STDERR] Container clicknex-backend Starting [2026-06-09T23:21:38.017Z] [STDERR] Container clicknex-backend Started [2026-06-09T23:21:43.126Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T23:21:45.208Z] [DEPLOY] [2026-06-09 23:21:45] ✓ Backend health check passed (healthy) [2026-06-09T23:21:45.209Z] [DEPLOY] [2026-06-09 23:21:45] Updating frontend container... [2026-06-09T23:21:45.402Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T23:21:45.893Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T23:21:45.920Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T23:21:46.165Z] [STDERR] Container clicknex-frontend Started [2026-06-09T23:21:46.178Z] [DEPLOY] [2026-06-09 23:21:46] ✓ New containers started [2026-06-09T23:21:46.179Z] [DEPLOY] [2026-06-09 23:21:46] STEP: Step 7/8: Running health checks... [2026-06-09T23:21:46.232Z] [DEPLOY] [2026-06-09 23:21:46] ✓ Backend health check passed (healthy) [2026-06-09T23:21:46.277Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T23:21:48.352Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T23:21:50.410Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T23:21:52.460Z] [DEPLOY] [2026-06-09 23:21:52] ✓ Frontend health check passed (healthy) [2026-06-09T23:21:52.461Z] [DEPLOY] [2026-06-09 23:21:52] ✓ All health checks passed [2026-06-09T23:21:52.462Z] [DEPLOY] [2026-06-09 23:21:52] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T23:21:54.753Z] [DEPLOY] [2026-06-09 23:21:54] ✓ Cleanup completed (disco: ?%) [2026-06-09T23:21:54.754Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T23:21:54.754Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T23:21:54.754Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T23:21:54.757Z] [DEPLOY] ║ Commit: c42c931 ║ [2026-06-09T23:21:54.759Z] [DEPLOY] ║ Time: 2026-06-09 23:21:54 ║ [2026-06-09T23:21:54.759Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ Services: ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T23:21:54.766Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T23:21:54.769Z] [INFO] ====================================================== [2026-06-09T23:21:54.770Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.10 em 439s [2026-06-09T23:21:54.770Z] [INFO] ======================================================