[2026-06-10T03:49:41.822Z] [INFO] ====================================================== [2026-06-10T03:49:41.823Z] [INFO] DEPLOY INICIADO — v1.0.13 [2026-06-10T03:49:41.823Z] [INFO] Commit: dc4b7aff87771990f0ba48d76c14678960586fa1 [2026-06-10T03:49:41.823Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T03:49:41.823Z] [INFO] Branch: main [2026-06-10T03:49:41.823Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T03:49:41.823Z] [INFO] ====================================================== [2026-06-10T03:49:41.823Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T03:49:41.823Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T03:49:41.828Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:49:41.828Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T03:49:41.828Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:49:41.830Z] [DEPLOY] [2026-06-10 03:49:41] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T03:49:43.580Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T03:49:43.581Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T03:49:43.581Z] [STDERR] d3d452a..dc4b7af main -> origin/main [2026-06-10T03:49:43.604Z] [DEPLOY] [2026-06-10 03:49:43] Deploy do commit validado pelo CI: dc4b7aff87771990f0ba48d76c14678960586fa1 [2026-06-10T03:49:43.621Z] [STDERR] Reset branch 'main' [2026-06-10T03:49:43.622Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T03:49:43.624Z] [DEPLOY] [2026-06-10 03:49:43] ✓ Code updated to latest version [2026-06-10T03:49:43.626Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Step 2/8: Backing up current state... [2026-06-10T03:49:43.627Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Creating backup of current state... [2026-06-10T03:49:43.928Z] [DEPLOY] [2026-06-10 03:49:43] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T03:49:43.929Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T03:49:43.933Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T03:49:43.933Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T03:49:43.934Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T03:49:43.934Z] [DEPLOY] Database: saas_crm [2026-06-10T03:49:43.934Z] [DEPLOY] Host: localhost:5432 [2026-06-10T03:49:43.934Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz [2026-06-10T03:49:43.934Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T03:54:00.072Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz (2.9G) [2026-06-10T03:54:00.079Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T03:54:00.097Z] [DEPLOY] removendo antigo: backup_20260609_231438.sql.gz [2026-06-10T03:54:00.219Z] [DEPLOY] Current backups: [2026-06-10T03:54:00.220Z] [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:54:00.221Z] [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:54:00.221Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:54 /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz [2026-06-10T03:54:00.221Z] [DEPLOY] Backup completed! [2026-06-10T03:54:00.223Z] [DEPLOY] [2026-06-10 03:54:00] ✓ Database backup completed [2026-06-10T03:54:00.224Z] [DEPLOY] [2026-06-10 03:54:00] STEP: Step 4/8: Building new Docker images... [2026-06-10T03:54:00.240Z] [DEPLOY] [2026-06-10 03:54:00] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T03:54:00.927Z] [DEPLOY] [2026-06-10 03:54:00] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T03:54:01.264Z] [DEPLOY] [2026-06-10 03:54:01] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T03:54:01.628Z] [STDERR] time="2026-06-10T03:54:01Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T03:54:02.183Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T03:54:02.184Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T03:54:02.184Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-10T03:54:02.185Z] [DEPLOY] #1 DONE 0.1s [2026-06-10T03:54:02.185Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:54:03.022Z] [DEPLOY] #2 DONE 1.0s [2026-06-10T03:54:03.265Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:03.265Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-10T03:54:03.266Z] [DEPLOY] #3 DONE 0.1s [2026-06-10T03:54:03.285Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:03.285Z] [DEPLOY] #3 CACHED [2026-06-10T03:54:03.845Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:54:04.596Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T03:54:04.715Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T03:54:04.716Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T03:54:04.716Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T03:54:04.879Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:54:04.879Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:54:04.879Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T03:54:04.879Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T03:54:04.879Z] [DEPLOY] #7 transferring context: 93.91kB 0.1s done [2026-06-10T03:54:05.017Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T03:54:05.017Z] [DEPLOY] #8 [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:54:05.017Z] [DEPLOY] #8 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #9 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T03:54:05.017Z] [DEPLOY] #9 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #10 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:05.017Z] [DEPLOY] #10 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #11 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T03:54:05.017Z] [DEPLOY] #11 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #12 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:05.017Z] [DEPLOY] #12 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #13 [backend builder 2/10] WORKDIR /app [2026-06-10T03:54:05.017Z] [DEPLOY] #13 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #14 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T03:54:05.017Z] [DEPLOY] #14 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #15 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T03:54:05.017Z] [DEPLOY] #15 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #16 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T03:54:05.017Z] [DEPLOY] #16 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #17 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:05.018Z] [DEPLOY] #17 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #18 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T03:54:05.018Z] [DEPLOY] #18 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #19 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T03:54:05.018Z] [DEPLOY] #19 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:05.018Z] [DEPLOY] #20 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #21 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T03:54:05.018Z] [DEPLOY] #21 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #22 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T03:54:05.018Z] [DEPLOY] #22 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #23 [backend builder 7/10] COPY . . [2026-06-10T03:54:05.018Z] [DEPLOY] #23 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #24 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T03:54:05.018Z] [DEPLOY] #24 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #25 [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:54:05.018Z] [DEPLOY] #25 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T03:54:05.018Z] [DEPLOY] #26 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting layers 0.0s done [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting manifest sha256:2563fde0b0ccc2d8f7a41363d69bc2763c527e94b8fb10c3380234f18d61b01b done [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting config sha256:d692e812a8fc528824eece32dc9dcb536e68696b4ab9e53fa7b04ff2c5142cb7 done [2026-06-10T03:54:05.020Z] [DEPLOY] #27 exporting attestation manifest sha256:f53ca844da2c7efd85ed388b798594ed801047bd665b56bf00b955b33edd6271 [2026-06-10T03:54:05.127Z] [DEPLOY] #27 exporting attestation manifest sha256:f53ca844da2c7efd85ed388b798594ed801047bd665b56bf00b955b33edd6271 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 exporting manifest list sha256:c1e8c6055c87ee3d1b934a227e0bb4e4a530319facd8e3192fcb0ee3342759a0 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 DONE 0.2s [2026-06-10T03:54:05.397Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T03:54:05.510Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T03:54:05.683Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T03:54:05.683Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T03:54:05.683Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T03:54:05.683Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:54:05.755Z] [DEPLOY] #2 DONE 1.2s [2026-06-10T03:54:05.876Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:05.877Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:54:05.877Z] [DEPLOY] #3 CACHED [2026-06-10T03:54:05.877Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:54:06.109Z] [DEPLOY] #4 DONE 1.0s [2026-06-10T03:54:06.109Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T03:54:06.650Z] [DEPLOY] #30 DONE 0.8s [2026-06-10T03:54:06.785Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T03:54:06.786Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T03:54:06.786Z] [DEPLOY] #31 DONE 0.0s [2026-06-10T03:54:06.786Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:54:06.786Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:54:06.786Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T03:54:06.786Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-10T03:54:07.029Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T03:54:07.030Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:54:07.032Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-10T03:54:07.033Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T03:54:07.033Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:54:07.033Z] [DEPLOY] #32 transferring context: 96.84kB 0.0s done [2026-06-10T03:54:07.033Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:54:07.033Z] [DEPLOY] #13 [frontend builder 2/7] WORKDIR /app [2026-06-10T03:54:07.033Z] [DEPLOY] #13 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #34 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:07.034Z] [DEPLOY] #34 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #35 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:07.034Z] [DEPLOY] #35 CACHED [2026-06-10T03:54:07.034Z] [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:54:07.034Z] [DEPLOY] #36 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T03:54:07.188Z] [DEPLOY] #37 DONE 0.3s [2026-06-10T03:54:07.341Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T03:54:08.115Z] [DEPLOY] #38 0.925 [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 > frontend@1.0.0 build /app [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 > tsc && vite build [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 [2026-06-10T03:54:55.221Z] [DEPLOY] #38 48.03 vite v5.4.21 building for production... [2026-06-10T03:54:55.834Z] [DEPLOY] #38 48.64 transforming... [2026-06-10T03:54:56.025Z] [DEPLOY] #38 48.83 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T03:54:56.025Z] [DEPLOY] #38 48.83 npx update-browserslist-db@latest [2026-06-10T03:54:56.026Z] [DEPLOY] #38 48.83 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T03:55:21.801Z] [DEPLOY] #38 74.61 ✓ 4326 modules transformed. [2026-06-10T03:55:23.425Z] [DEPLOY] #38 76.23 rendering chunks... [2026-06-10T03:55:25.468Z] [DEPLOY] #38 78.28 computing gzip size... [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/registerSW.js 0.13 kB [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/manifest.webmanifest 0.54 kB [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index-DFw90CBK.css 163.37 kB │ gzip: 24.94 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index.es-Drtkzpyb.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index-BFofoGnV.js 4,164.40 kB │ gzip: 1,081.30 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Using dynamic import() to code-split the application [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.46 ✓ built in 30.39s [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 PWA v1.2.0 [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 Building src/sw.ts service worker ("es" format)... [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 vite v5.4.21 building for production... [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.47 transforming... [2026-06-10T03:55:27.102Z] [DEPLOY] #38 79.91 ✓ 1 modules transformed. [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.95 rendering chunks... [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.97 computing gzip size... [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.99 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T03:55:27.351Z] [DEPLOY] #38 80.01 ✓ built in 1.55s [2026-06-10T03:55:27.619Z] [DEPLOY] #38 80.43 [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 PWA v1.2.0 [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 mode injectManifest [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 format: es [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 precache 15 entries (4953.65 KiB) [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 files generated [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 dist/sw.js [2026-06-10T03:55:28.463Z] [DEPLOY] #38 DONE 81.3s [2026-06-10T03:55:30.051Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T03:55:30.055Z] [DEPLOY] #39 CACHED [2026-06-10T03:55:30.055Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T03:55:30.273Z] [DEPLOY] #40 CACHED [2026-06-10T03:55:30.274Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T03:55:30.274Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T03:55:30.274Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T03:55:30.274Z] [DEPLOY] #42 exporting layers [2026-06-10T03:55:30.400Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T03:55:30.550Z] [DEPLOY] #42 exporting manifest sha256:98c8f98fea5ae6486555c604a9a05b6a5f5188dfa3cacc9df7e6e6bef9c49111 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting config sha256:66112d1eef3bb52f82b5881ac265402072a1f8d135ea4054f6eff92f045cfb54 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting attestation manifest sha256:c383c83f2cc0e301176c76384d4d53b66c136eb076132e8c8ded8e26f7f6e1cc 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting manifest list sha256:ac1c33e5089a86b4aaa156d0269a33cff4c4ebd02ed8a10726cced1967a8afb4 done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T03:55:30.735Z] [DEPLOY] #42 DONE 0.5s [2026-06-10T03:55:30.772Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T03:55:30.792Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T03:55:30.794Z] [STDERR] backend Built [2026-06-10T03:55:30.794Z] [STDERR] frontend Built [2026-06-10T03:55:30.809Z] [DEPLOY] [2026-06-10 03:55:30] ✓ New images built successfully [2026-06-10T03:55:30.810Z] [DEPLOY] [2026-06-10 03:55:30] STEP: Step 5/8: Running database migrations... [2026-06-10T03:55:30.811Z] [DEPLOY] [2026-06-10 03:55:30] Checking for pending migrations... [2026-06-10T03:55:30.812Z] [DEPLOY] [2026-06-10 03:55:30] Applying schema changes... [2026-06-10T03:55:33.221Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:55:33.264Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T03:55:33.815Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T03:55:33.868Z] [DEPLOY] npm notice [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice [2026-06-10T03:55:34.180Z] [DEPLOY] [2026-06-10 03:55:34] ✓ Database schema already in sync [2026-06-10T03:55:34.180Z] [DEPLOY] [2026-06-10 03:55:34] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T03:55:34.182Z] [DEPLOY] [2026-06-10 03:55:34] Updating backend container... [2026-06-10T03:55:34.422Z] [STDERR] Container clicknex-redis Running [2026-06-10T03:55:34.423Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T03:55:44.944Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T03:55:44.983Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T03:55:45.486Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T03:55:45.487Z] [STDERR] Container clicknex-backend Starting [2026-06-10T03:55:45.791Z] [STDERR] Container clicknex-backend Started [2026-06-10T03:55:50.895Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T03:55:52.940Z] [DEPLOY] [2026-06-10 03:55:52] ✓ Backend health check passed (healthy) [2026-06-10T03:55:52.943Z] [DEPLOY] [2026-06-10 03:55:52] Updating frontend container... [2026-06-10T03:55:53.129Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T03:55:53.524Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T03:55:53.553Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T03:55:53.761Z] [STDERR] Container clicknex-frontend Started [2026-06-10T03:55:53.773Z] [DEPLOY] [2026-06-10 03:55:53] ✓ New containers started [2026-06-10T03:55:53.774Z] [DEPLOY] [2026-06-10 03:55:53] STEP: Step 7/8: Running health checks... [2026-06-10T03:55:53.818Z] [DEPLOY] [2026-06-10 03:55:53] ✓ Backend health check passed (healthy) [2026-06-10T03:55:53.862Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T03:55:55.917Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T03:55:57.971Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T03:56:00.141Z] [DEPLOY] [2026-06-10 03:56:00] ✓ Frontend health check passed (healthy) [2026-06-10T03:56:00.157Z] [DEPLOY] [2026-06-10 03:56:00] ✓ All health checks passed [2026-06-10T03:56:00.165Z] [DEPLOY] [2026-06-10 03:56:00] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T03:56:03.032Z] [DEPLOY] [2026-06-10 03:56:03] ✓ Cleanup completed (disco: ?%) [2026-06-10T03:56:03.032Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:56:03.033Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T03:56:03.033Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:56:03.036Z] [DEPLOY] ║ Commit: dc4b7af ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ Time: 2026-06-10 03:56:03 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ Services: ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:56:03.047Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T03:56:03.051Z] [INFO] ====================================================== [2026-06-10T03:56:03.052Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.13 em 381s [2026-06-10T03:56:03.052Z] [INFO] ======================================================