[2026-06-09T19:27:35.519Z] [DEPLOY] #4 DONE 1.4s [2026-06-09T19:27:35.519Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T19:27:35.794Z] [DEPLOY] #30 DONE 0.9s [2026-06-09T19:27:35.978Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T19:27:35.978Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T19:27:35.978Z] [DEPLOY] #31 DONE 0.0s [2026-06-09T19:27:36.498Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T19:27:36.498Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T19:27:36.499Z] [DEPLOY] #6 DONE 0.1s [2026-06-09T19:27:36.499Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T19:27:36.499Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-09T19:27:36.499Z] [DEPLOY] #32 DONE 0.1s [2026-06-09T19:27:36.499Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T19:27:36.499Z] [DEPLOY] #33 transferring context: 161.61kB 0.1s done [2026-06-09T19:27:36.690Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T19:27:36.690Z] [DEPLOY] #9 [frontend builder 2/7] WORKDIR /app [2026-06-09T19:27:36.690Z] [DEPLOY] #9 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T19:27:36.690Z] [DEPLOY] #34 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T19:27:36.690Z] [DEPLOY] #35 CACHED [2026-06-09T19:27:36.690Z] [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-09T19:27:36.690Z] [DEPLOY] #36 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T19:27:36.930Z] [DEPLOY] #37 DONE 0.4s [2026-06-09T19:27:37.084Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T19:27:38.032Z] [DEPLOY] #38 1.099 [2026-06-09T19:27:38.032Z] [DEPLOY] #38 1.099 > frontend@1.0.0 build /app [2026-06-09T19:27:38.033Z] [DEPLOY] #38 1.099 > tsc && vite build [2026-06-09T19:27:38.033Z] [DEPLOY] #38 1.099 [2026-06-09T19:28:33.992Z] [DEPLOY] #38 57.06 vite v5.4.21 building for production... [2026-06-09T19:28:34.713Z] [DEPLOY] #38 57.78 transforming... [2026-06-09T19:28:34.959Z] [DEPLOY] #38 57.88 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T19:28:34.960Z] [DEPLOY] #38 57.88 npx update-browserslist-db@latest [2026-06-09T19:28:34.960Z] [DEPLOY] #38 57.88 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T19:29:00.495Z] [DEPLOY] #38 83.56 ✓ 4326 modules transformed. [2026-06-09T19:29:03.061Z] [DEPLOY] #38 86.13 rendering chunks... [2026-06-09T19:29:06.769Z] [DEPLOY] #38 89.84 computing gzip size... [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/registerSW.js 0.13 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/manifest.webmanifest 0.54 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/assets/index-BauOmW2f.css 163.28 kB │ gzip: 24.92 kB [2026-06-09T19:29:07.070Z] [DEPLOY] #38 89.96 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/index.es-29t7SuDD.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/index-BrsdOQe_.js 4,159.38 kB │ gzip: 1,079.93 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Using dynamic import() to code-split the application [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.97 ✓ built in 32.87s [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 PWA v1.2.0 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 Building src/sw.ts service worker ("es" format)... [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 vite v5.4.21 building for production... [2026-06-09T19:29:09.094Z] [DEPLOY] #38 92.16 transforming... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.17 ✓ 1 modules transformed. [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.18 rendering chunks... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.18 computing gzip size... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.19 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.19 ✓ built in 2.21s [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 PWA v1.2.0 [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 mode injectManifest [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 format: es [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 precache 15 entries (4948.65 KiB) [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 files generated [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 dist/sw.js [2026-06-09T19:29:09.819Z] [DEPLOY] #38 DONE 92.9s [2026-06-09T19:29:14.249Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T19:29:14.251Z] [DEPLOY] #39 CACHED [2026-06-09T19:29:14.251Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T19:29:14.353Z] [DEPLOY] #40 CACHED [2026-06-09T19:29:14.353Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T19:29:14.353Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T19:29:14.515Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T19:29:14.515Z] [DEPLOY] #42 exporting layers [2026-06-09T19:29:14.612Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-09T19:29:14.786Z] [DEPLOY] #42 exporting manifest sha256:10d3bb22210199b63293a084aa7aa1cd869f69e7665810a579870f9bff1585cf 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting config sha256:b05cfa16dfb991d5993d8d807dc0aa7d53c38441aba6361a0aebd4305cdd5b75 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting attestation manifest sha256:08a3c1ef6e31cfe9d43bc5c1777d761d8948a09f2bf5710cf40ebbd299eb3ac5 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting manifest list sha256:896eba86eac348add40bae9a87b639ac38e9785723bbc31a42719475c63886d5 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-09T19:29:14.984Z] [DEPLOY] #42 DONE 0.5s [2026-06-09T19:29:15.136Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T19:29:15.156Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T19:29:15.156Z] [STDERR] backend Built [2026-06-09T19:29:15.156Z] [STDERR] frontend Built [2026-06-09T19:29:15.188Z] [DEPLOY] [2026-06-09 19:29:15] ✓ New images built successfully [2026-06-09T19:29:15.190Z] [DEPLOY] [2026-06-09 19:29:15] STEP: Step 5/8: Running database migrations... [2026-06-09T19:29:15.190Z] [DEPLOY] [2026-06-09 19:29:15] Checking for pending migrations... [2026-06-09T19:29:15.192Z] [DEPLOY] [2026-06-09 19:29:15] Applying schema changes... [2026-06-09T19:29:18.388Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T19:29:18.432Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T19:29:19.059Z] [DEPLOY] 🚀 Your database is now in sync with your Prisma schema. Done in 517ms [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T19:29:19.117Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T19:29:19.117Z] [DEPLOY] npm notice [2026-06-09T19:29:19.412Z] [DEPLOY] [2026-06-09 19:29:19] ✓ Database schema synced successfully [2026-06-09T19:29:19.413Z] [DEPLOY] [2026-06-09 19:29:19] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T19:29:19.414Z] [DEPLOY] [2026-06-09 19:29:19] Updating backend container... [2026-06-09T19:29:19.660Z] [STDERR] Container clicknex-redis Running [2026-06-09T19:29:19.661Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T19:29:30.327Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T19:29:30.413Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T19:29:30.917Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T19:29:30.917Z] [STDERR] Container clicknex-backend Starting [2026-06-09T19:29:31.262Z] [STDERR] Container clicknex-backend Started [2026-06-09T19:29:36.359Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T19:29:38.494Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-09T19:29:40.634Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-09T19:29:42.699Z] [DEPLOY] [2026-06-09 19:29:42] ✓ Backend health check passed (healthy) [2026-06-09T19:29:42.702Z] [DEPLOY] [2026-06-09 19:29:42] Updating frontend container... [2026-06-09T19:29:43.079Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T19:29:43.662Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T19:29:43.730Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T19:29:44.116Z] [STDERR] Container clicknex-frontend Started [2026-06-09T19:29:44.159Z] [DEPLOY] [2026-06-09 19:29:44] ✓ New containers started [2026-06-09T19:29:44.171Z] [DEPLOY] [2026-06-09 19:29:44] STEP: Step 7/8: Running health checks... [2026-06-09T19:29:44.264Z] [DEPLOY] [2026-06-09 19:29:44] ✓ Backend health check passed (healthy) [2026-06-09T19:29:44.310Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T19:29:46.394Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T19:29:48.471Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T19:29:50.553Z] [DEPLOY] [2026-06-09 19:29:50] ✓ Frontend health check passed (healthy) [2026-06-09T19:29:50.559Z] [DEPLOY] [2026-06-09 19:29:50] ✓ All health checks passed [2026-06-09T19:29:50.560Z] [DEPLOY] [2026-06-09 19:29:50] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T19:29:50.677Z] [DEPLOY] [2026-06-09 19:29:50] ✓ Cleanup completed (disco: ?%) [2026-06-09T19:29:50.678Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T19:29:50.678Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T19:29:50.678Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T19:29:50.680Z] [DEPLOY] ║ Commit: a74160c ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ Time: 2026-06-09 19:29:50 ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ Services: ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T19:29:50.682Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T19:29:50.682Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T19:29:50.686Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T19:29:50.688Z] [INFO] ====================================================== [2026-06-09T19:29:50.689Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.8 em 633s [2026-06-09T19:29:50.689Z] [INFO] ====================================================== [2026-06-09T20:11:22.657Z] [INFO] Deploy manual disparado (commit be4b30b9) [2026-06-09T20:11:22.659Z] [INFO] ====================================================== [2026-06-09T20:11:22.660Z] [INFO] DEPLOY INICIADO — v1.0.9 [2026-06-09T20:11:22.660Z] [INFO] Commit: be4b30b9e4acd32c614486edf5091cb9fb13f849 [2026-06-09T20:11:22.660Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-09T20:11:22.660Z] [INFO] Branch: main [2026-06-09T20:11:22.660Z] [INFO] Disparado por: jhon4than (CI) [2026-06-09T20:11:22.660Z] [INFO] ====================================================== [2026-06-09T20:11:22.660Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-09T20:11:22.660Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-09T20:11:22.669Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T20:11:22.670Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-09T20:11:22.670Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T20:11:22.671Z] [DEPLOY] [2026-06-09 20:11:22] STEP: Step 1/8: Pulling latest code from repository... [2026-06-09T20:11:24.503Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-09T20:11:24.503Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-09T20:11:24.504Z] [STDERR] a74160c..be4b30b main -> origin/main [2026-06-09T20:11:24.531Z] [DEPLOY] [2026-06-09 20:11:24] Deploy do commit validado pelo CI: be4b30b9e4acd32c614486edf5091cb9fb13f849 [2026-06-09T20:11:24.562Z] [STDERR] Reset branch 'main' [2026-06-09T20:11:24.563Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-09T20:11:24.567Z] [DEPLOY] [2026-06-09 20:11:24] ✓ Code updated to latest version [2026-06-09T20:11:24.569Z] [DEPLOY] [2026-06-09 20:11:24] STEP: Step 2/8: Backing up current state... [2026-06-09T20:11:24.570Z] [DEPLOY] [2026-06-09 20:11:24] STEP: Creating backup of current state... [2026-06-09T20:11:25.125Z] [DEPLOY] [2026-06-09 20:11:25] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-09T20:11:25.131Z] [DEPLOY] [2026-06-09 20:11:25] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-09T20:11:25.140Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-09T20:11:25.140Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-09T20:11:25.145Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-09T20:11:25.145Z] [DEPLOY] Database: saas_crm [2026-06-09T20:11:25.146Z] [DEPLOY] Host: localhost:5432 [2026-06-09T20:11:25.146Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-09T20:11:25.146Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-09T20:17:03.464Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz (2.9G) [2026-06-09T20:17:03.468Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-09T20:17:03.476Z] [DEPLOY] removendo antigo: backup_20260603_205509.sql.gz [2026-06-09T20:17:03.490Z] [DEPLOY] Current backups: [2026-06-09T20:17:03.497Z] [DEPLOY] -rw-r--r-- 1 root root 2.6G Jun 6 03:46 /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz [2026-06-09T20:17:03.498Z] [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-09T20:17:03.498Z] [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-09T20:17:03.499Z] [DEPLOY] Backup completed! [2026-06-09T20:17:03.501Z] [DEPLOY] [2026-06-09 20:17:03] ✓ Database backup completed [2026-06-09T20:17:03.507Z] [DEPLOY] [2026-06-09 20:17:03] STEP: Step 4/8: Building new Docker images... [2026-06-09T20:17:03.509Z] [DEPLOY] [2026-06-09 20:17:03] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-09T20:17:03.968Z] [DEPLOY] [2026-06-09 20:17:03] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-09T20:17:04.104Z] [DEPLOY] [2026-06-09 20:17:04] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-09T20:17:04.284Z] [STDERR] time="2026-06-09T20:17:04Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-09T20:17:04.511Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-09T20:17:04.511Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-09T20:17:04.685Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-09T20:17:04.685Z] [DEPLOY] #1 DONE 0.0s [2026-06-09T20:17:04.686Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T20:17:05.376Z] [DEPLOY] #2 DONE 0.8s [2026-06-09T20:17:05.592Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T20:17:05.592Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-09T20:17:05.592Z] [DEPLOY] #3 CACHED [2026-06-09T20:17:05.872Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T20:17:06.692Z] [DEPLOY] #4 DONE 0.8s [2026-06-09T20:17:06.796Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-09T20:17:06.796Z] [DEPLOY] #5 transferring context: 304B 0.0s done [2026-06-09T20:17:06.796Z] [DEPLOY] #5 DONE 0.0s [2026-06-09T20:17:06.796Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T20:17:06.796Z] [DEPLOY] #6 DONE 0.0s [2026-06-09T20:17:06.796Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T20:17:06.796Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T20:17:06.797Z] [DEPLOY] #7 DONE 0.0s [2026-06-09T20:17:06.949Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T20:17:07.199Z] [DEPLOY] #6 transferring context: 166.13kB 0.2s done [2026-06-09T20:17:07.199Z] [DEPLOY] #6 DONE 0.2s [2026-06-09T20:17:07.199Z] [DEPLOY] #8 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-09T20:17:07.199Z] [DEPLOY] #8 CACHED [2026-06-09T20:17:07.199Z] [DEPLOY] #9 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:17:07.199Z] [DEPLOY] #9 CACHED [2026-06-09T20:17:07.199Z] [DEPLOY] #10 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:17:07.200Z] [DEPLOY] #10 CACHED [2026-06-09T20:17:07.200Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-09T20:17:07.200Z] [DEPLOY] #11 CACHED [2026-06-09T20:17:07.200Z] [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-09T20:17:07.200Z] [DEPLOY] #12 CACHED [2026-06-09T20:17:07.200Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-09T20:17:07.667Z] [DEPLOY] #13 DONE 0.6s [2026-06-09T20:17:07.820Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-09T20:17:11.316Z] [DEPLOY] #14 3.646 Prisma schema loaded from prisma/schema.prisma [2026-06-09T20:17:16.056Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 ✔ 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.71s [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.486Z] [DEPLOY] #14 DONE 8.8s [2026-06-09T20:17:16.650Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T20:17:17.456Z] [DEPLOY] #15 0.956 [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 > backend@0.0.1 build /app [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 > nest build [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 [2026-06-09T20:18:09.414Z] [DEPLOY] #15 DONE 52.9s [2026-06-09T20:18:09.568Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 total 80 [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 drwxr-xr-x 6 root root 4096 Jun 9 20:18 . [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 drwxr-xr-x 4 root root 4096 Jun 9 20:18 .. [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 drwxr-xr-x 3 root root 4096 Jun 9 20:18 __mocks__ [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 181 Jun 9 20:17 app.controller.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 1611 Jun 9 20:17 app.controller.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 436 Jun 9 20:17 app.controller.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 35 Jun 9 20:18 app.module.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 8972 Jun 9 20:18 app.module.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 2525 Jun 9 20:18 app.module.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 60 Jun 9 20:17 app.service.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 981 Jun 9 20:17 app.service.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 281 Jun 9 20:17 app.service.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 drwxr-xr-x 4 root root 4096 Jun 9 20:17 common [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 11 Jun 9 20:18 main.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root [2026-06-09T20:18:09.912Z] [DEPLOY] 2914 Jun 9 20:18 main.js [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 -rw-r--r-- 1 root root 2491 Jun 9 20:18 main.js.map [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 drwxr-xr-x 58 root root 4096 Jun 9 20:18 modules [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 drwxr-xr-x 2 root root 4096 Jun 9 20:17 prisma [2026-06-09T20:18:09.913Z] [DEPLOY] #16 DONE 0.3s [2026-06-09T20:18:13.221Z] [DEPLOY] #17 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-09T20:18:13.221Z] [DEPLOY] #17 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #18 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:18:13.222Z] [DEPLOY] #18 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #19 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-09T20:18:13.222Z] [DEPLOY] #19 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #20 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:18:13.222Z] [DEPLOY] #20 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #21 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T20:18:13.222Z] [DEPLOY] #21 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #22 [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-09T20:18:13.222Z] [DEPLOY] #22 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-09T20:18:13.393Z] [DEPLOY] #23 CACHED [2026-06-09T20:18:13.394Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-09T20:18:13.692Z] [DEPLOY] #24 DONE 0.4s [2026-06-09T20:18:13.844Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-09T20:18:14.013Z] [DEPLOY] #25 DONE 0.3s [2026-06-09T20:18:14.168Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-09T20:18:58.510Z] [DEPLOY] #26 DONE 44.5s [2026-06-09T20:18:58.686Z] [DEPLOY] #27 [backend] exporting to image [2026-06-09T20:18:58.689Z] [DEPLOY] #27 exporting layers [2026-06-09T20:19:20.059Z] [DEPLOY] #27 exporting layers 21.5s done [2026-06-09T20:19:20.289Z] [DEPLOY] #27 exporting manifest sha256:0baf590b5c2c1facb3ee2b378f010c9724d8a291a9dc02acfc774bb55a859929 done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting config sha256:1a891d42708c0703a4ac0b608d5b2b6f4255b3a434aa00eb1b8f5ae267cb90e9 done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting attestation manifest sha256:236607ef31fa1a63c7b0c68d5f147e0d42734b0f84f9e746e6f45acd19de66f1 0.0s done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting manifest list sha256:72a102e0abdeaa72697829092afa741652c7553fcddebf6b7664071f6cef8b17 0.0s done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-09T20:19:26.536Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.4s done [2026-06-09T20:19:26.721Z] [DEPLOY] #27 DONE 28.0s [2026-06-09T20:19:26.989Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-09T20:19:27.101Z] [DEPLOY] #28 DONE 0.0s [2026-06-09T20:19:27.286Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-09T20:19:27.287Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-09T20:19:27.287Z] [DEPLOY] #29 DONE 0.0s [2026-06-09T20:19:27.287Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T20:19:27.613Z] [DEPLOY] #2 DONE 1.3s [2026-06-09T20:19:27.729Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T20:19:27.729Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T20:19:27.729Z] [DEPLOY] #3 CACHED [2026-06-09T20:19:27.729Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T20:19:28.181Z] [DEPLOY] #4 DONE 1.3s [2026-06-09T20:19:28.181Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T20:19:28.448Z] [DEPLOY] #30 DONE 0.7s [2026-06-09T20:19:28.560Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T20:19:28.560Z] [DEPLOY] #31 transferring context: [2026-06-09T20:19:28.720Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T20:19:28.720Z] [DEPLOY] #31 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T20:19:29.471Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-09T20:19:29.471Z] [DEPLOY] #7 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T20:19:29.471Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-09T20:19:29.471Z] [DEPLOY] #32 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T20:19:29.582Z] [DEPLOY] #33 transferring context: 256.89kB 0.1s done [2026-06-09T20:19:29.583Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T20:19:29.583Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-09T20:19:29.583Z] [DEPLOY] #11 CACHED [2026-06-09T20:19:29.583Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:19:29.583Z] [DEPLOY] #34 CACHED [2026-06-09T20:19:29.583Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:19:29.583Z] [DEPLOY] #35 CACHED [2026-06-09T20:19:29.583Z] [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-09T20:19:29.737Z] [DEPLOY] #36 CACHED [2026-06-09T20:19:29.738Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T20:19:30.041Z] [DEPLOY] #37 DONE 0.5s [2026-06-09T20:19:30.201Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T20:19:30.988Z] [DEPLOY] #38 0.944 [2026-06-09T20:19:30.988Z] [DEPLOY] #38 0.944 > frontend@1.0.0 build /app [2026-06-09T20:19:30.989Z] [DEPLOY] #38 0.944 > tsc && vite build [2026-06-09T20:19:30.989Z] [DEPLOY] #38 0.944 [2026-06-09T20:20:30.055Z] [DEPLOY] #38 60.01 vite v5.4.21 building for production... [2026-06-09T20:20:30.736Z] [DEPLOY] #38 60.69 transforming... [2026-06-09T20:20:30.952Z] [DEPLOY] #38 60.76 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T20:20:30.952Z] [DEPLOY] #38 60.76 npx update-browserslist-db@latest [2026-06-09T20:20:30.953Z] [DEPLOY] #38 60.76 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T20:20:55.642Z] [DEPLOY] #38 85.60 ✓ 4327 modules transformed. [2026-06-09T20:20:57.509Z] [DEPLOY] #38 87.47 rendering chunks... [2026-06-09T20:21:01.216Z] [DEPLOY] #38 91.17 computing gzip size... [2026-06-09T20:21:01.344Z] [DEPLOY] #38 91.30 [2026-06-09T20:21:01.347Z] [DEPLOY] #38 91.30 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T20:21:01.348Z] [DEPLOY] #38 91.30 - Using dynamic import() to code-split the application [2026-06-09T20:21:01.348Z] [DEPLOY] #38 91.30 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T20:21:01.349Z] [DEPLOY] #38 91.30 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T20:21:01.526Z] [DEPLOY] #38 91.30 dist/registerSW.js 0.13 kB [2026-06-09T20:21:01.529Z] [DEPLOY] #38 91.30 dist/manifest.webmanifest 0.54 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index-B5Cv6OLG.css 163.31 kB │ gzip: 24.93 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index.es-l2B_WRz7.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index-CMSv6KJh.js 4,167.95 kB │ gzip: 1,082.08 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 ✓ built in 31.24s [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 PWA v1.2.0 [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 Building src/sw.ts service worker ("es" format)... [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.33 vite v5.4.21 building for production... [2026-06-09T20:21:03.727Z] [DEPLOY] #38 93.68 transforming... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.72 ✓ 1 modules transformed. [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.73 rendering chunks... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 computing gzip size... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 ✓ built in 2.40s [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 PWA v1.2.0 [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 mode injectManifest [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 format: es [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 precache 15 entries (4957.07 KiB) [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 files generated [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 dist/sw.js [2026-06-09T20:21:04.283Z] [DEPLOY] #38 DONE 94.2s [2026-06-09T20:21:06.776Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T20:21:06.776Z] [DEPLOY] #39 CACHED [2026-06-09T20:21:06.776Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T20:21:07.025Z] [DEPLOY] #40 CACHED [2026-06-09T20:21:07.025Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T20:21:07.025Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T20:21:07.025Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T20:21:07.025Z] [DEPLOY] #42 exporting layers [2026-06-09T20:21:07.341Z] [DEPLOY] #42 exporting layers 0.5s done [2026-06-09T20:21:07.343Z] [DEPLOY] #42 exporting manifest sha256:0f828c9c4c286561320cd383a2c4b31ecb4bfc2e0a2b570afd3625aa2df484f5 [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting manifest sha256:0f828c9c4c286561320cd383a2c4b31ecb4bfc2e0a2b570afd3625aa2df484f5 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting config sha256:a580293b909dc1b0278352739fbad0739a528730da2e91d16f6466356458866f 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting attestation manifest sha256:2e9cad7319e9fe0676686f4c02062cd30307d8bf92c258f8d54588bd4a6ce089 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting manifest list sha256:35c9a546781a846e107cd106d5f56008d2b64d3bb8890b372990ced2168a2dd4 done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest [2026-06-09T20:21:07.589Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.2s done [2026-06-09T20:21:07.714Z] [DEPLOY] #42 DONE 0.8s [2026-06-09T20:21:08.109Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T20:21:08.127Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T20:21:08.127Z] [STDERR] backend Built [2026-06-09T20:21:08.127Z] [STDERR] frontend Built [2026-06-09T20:21:08.131Z] [DEPLOY] [2026-06-09 20:21:08] ✓ New images built successfully [2026-06-09T20:21:08.133Z] [DEPLOY] [2026-06-09 20:21:08] STEP: Step 5/8: Running database migrations... [2026-06-09T20:21:08.134Z] [DEPLOY] [2026-06-09 20:21:08] Checking for pending migrations... [2026-06-09T20:21:08.135Z] [DEPLOY] [2026-06-09 20:21:08] Applying schema changes... [2026-06-09T20:21:11.260Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T20:21:11.299Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T20:21:11.853Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice [2026-06-09T20:21:12.236Z] [DEPLOY] [2026-06-09 20:21:12] ✓ Database schema already in sync [2026-06-09T20:21:12.239Z] [DEPLOY] [2026-06-09 20:21:12] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T20:21:12.239Z] [DEPLOY] [2026-06-09 20:21:12] Updating backend container... [2026-06-09T20:21:12.534Z] [STDERR] Container clicknex-redis Running [2026-06-09T20:21:12.534Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T20:21:23.353Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T20:21:23.403Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T20:21:23.903Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T20:21:23.903Z] [STDERR] Container clicknex-backend Starting [2026-06-09T20:21:24.189Z] [STDERR] Container clicknex-backend Started [2026-06-09T20:21:29.272Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T20:21:31.335Z] [DEPLOY] [2026-06-09 20:21:31] ✓ Backend health check passed (healthy) [2026-06-09T20:21:31.337Z] [DEPLOY] [2026-06-09 20:21:31] Updating frontend container... [2026-06-09T20:21:31.571Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T20:21:32.061Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T20:21:32.155Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T20:21:32.418Z] [STDERR] Container clicknex-frontend Started [2026-06-09T20:21:32.430Z] [DEPLOY] [2026-06-09 20:21:32] ✓ New containers started [2026-06-09T20:21:32.435Z] [DEPLOY] [2026-06-09 20:21:32] STEP: Step 7/8: Running health checks... [2026-06-09T20:21:32.483Z] [DEPLOY] [2026-06-09 20:21:32] ✓ Backend health check passed (healthy) [2026-06-09T20:21:32.535Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T20:21:34.579Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T20:21:36.632Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T20:21:38.690Z] [DEPLOY] [2026-06-09 20:21:38] ✓ Frontend health check passed (healthy) [2026-06-09T20:21:38.692Z] [DEPLOY] [2026-06-09 20:21:38] ✓ All health checks passed [2026-06-09T20:21:38.693Z] [DEPLOY] [2026-06-09 20:21:38] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T20:21:42.875Z] [DEPLOY] [2026-06-09 20:21:42] ✓ Cleanup completed (disco: ?%) [2026-06-09T20:21:42.877Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T20:21:42.877Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T20:21:42.878Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T20:21:42.879Z] [DEPLOY] ║ Commit: be4b30b ║ [2026-06-09T20:21:42.880Z] [DEPLOY] ║ Time: 2026-06-09 20:21:42 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ Services: ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T20:21:42.885Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T20:21:42.886Z] [INFO] ====================================================== [2026-06-09T20:21:42.886Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.9 em 620s [2026-06-09T20:21:42.886Z] [INFO] ====================================================== [2026-06-09T23:14:35.950Z] [INFO] Deploy manual disparado (commit c42c931c) [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] ====================================================== [2026-06-10T00:01:52.960Z] [INFO] Deploy manual disparado (commit 04932f07) [2026-06-10T00:01:52.964Z] [INFO] ====================================================== [2026-06-10T00:01:52.967Z] [INFO] DEPLOY INICIADO — v1.0.11 [2026-06-10T00:01:52.968Z] [INFO] Commit: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:52.968Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T00:01:52.968Z] [INFO] Branch: main [2026-06-10T00:01:52.968Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T00:01:52.968Z] [INFO] ====================================================== [2026-06-10T00:01:52.969Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T00:01:52.969Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T00:01:52.988Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:01:52.989Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T00:01:52.989Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:01:52.996Z] [DEPLOY] [2026-06-10 00:01:52] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T00:01:54.846Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T00:01:54.847Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T00:01:54.847Z] [STDERR] c42c931..04932f0 main -> origin/main [2026-06-10T00:01:54.873Z] [DEPLOY] [2026-06-10 00:01:54] Deploy do commit validado pelo CI: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:54.901Z] [STDERR] Reset branch 'main' [2026-06-10T00:01:54.901Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T00:01:54.911Z] [DEPLOY] [2026-06-10 00:01:54] ✓ Code updated to latest version [2026-06-10T00:01:54.921Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Step 2/8: Backing up current state... [2026-06-10T00:01:54.923Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Creating backup of current state... [2026-06-10T00:01:55.660Z] [DEPLOY] [2026-06-10 00:01:55] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T00:01:55.664Z] [DEPLOY] [2026-06-10 00:01:55] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T00:01:55.670Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T00:01:55.670Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T00:01:55.670Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T00:01:55.671Z] [DEPLOY] Database: saas_crm [2026-06-10T00:01:55.671Z] [DEPLOY] Host: localhost:5432 [2026-06-10T00:01:55.671Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:01:55.671Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T00:07:36.812Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz (2.9G) [2026-06-10T00:07:36.813Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T00:07:36.816Z] [DEPLOY] removendo antigo: backup_20260609_191920.sql.gz [2026-06-10T00:07:36.860Z] [DEPLOY] Current backups: [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 20:17 /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 23:19 /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 00:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] Backup completed! [2026-06-10T00:07:36.864Z] [DEPLOY] [2026-06-10 00:07:36] ✓ Database backup completed [2026-06-10T00:07:36.865Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Step 4/8: Building new Docker images... [2026-06-10T00:07:36.866Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T00:07:37.200Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T00:07:37.248Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T00:07:37.403Z] [STDERR] time="2026-06-10T00:07:37Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T00:07:37.788Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T00:07:37.788Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T00:07:37.788Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-10T00:07:37.788Z] [DEPLOY] #1 DONE 0.0s [2026-06-10T00:07:37.788Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:07:38.478Z] [DEPLOY] #2 DONE 0.8s [2026-06-10T00:07:38.670Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:07:38.670Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:07:38.671Z] [DEPLOY] #3 CACHED [2026-06-10T00:07:39.403Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:07:40.140Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T00:07:40.328Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T00:07:40.328Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T00:07:40.328Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T00:07:40.432Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:07:40.432Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T00:07:40.432Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T00:07:40.432Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T00:07:40.557Z] [DEPLOY] #7 transferring context: 168.51kB 0.1s done [2026-06-10T00:07:40.662Z] [DEPLOY] #7 DONE 0.2s [2026-06-10T00:07:40.662Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:07:40.662Z] [DEPLOY] #8 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:07:40.662Z] [DEPLOY] #9 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-10T00:07:40.662Z] [DEPLOY] #10 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T00:07:40.662Z] [DEPLOY] #11 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T00:07:40.662Z] [DEPLOY] #12 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-10T00:07:41.454Z] [DEPLOY] #13 DONE 0.8s [2026-06-10T00:07:41.604Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T00:07:44.141Z] [DEPLOY] #14 2.684 Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:07:49.058Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.82s [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.425Z] [DEPLOY] #14 DONE 8.0s [2026-06-10T00:07:49.577Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > backend@0.0.1 build /app [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > nest build [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:08:37.515Z] [DEPLOY] #15 DONE 48.1s [2026-06-10T00:08:37.668Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 total 80 [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 6 root root 4096 Jun 10 00:08 . [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 .. [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 3 root root 4096 Jun 10 00:08 __mocks__ [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 181 Jun 10 00:08 app.controller.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 1611 Jun 10 00:08 app.controller.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 436 Jun 10 00:08 app.controller.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 35 Jun 10 00:08 app.module.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 8972 Jun 10 00:08 app.module.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2525 Jun 10 00:08 app.module.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 60 Jun 10 00:08 app.service.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 981 Jun 10 00:08 app.service.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 281 Jun 10 00:08 app.service.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 common [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 11 Jun 10 00:08 main.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2914 Jun 10 00:08 main.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2491 Jun 10 00:08 main.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 58 root root 4096 Jun 10 00:08 modules [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 2 root root 4096 Jun 10 00:08 prisma [2026-06-10T00:08:37.959Z] [DEPLOY] #16 DONE 0.3s [2026-06-10T00:08:42.249Z] [DEPLOY] #17 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T00:08:42.250Z] [DEPLOY] #17 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #18 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:08:42.250Z] [DEPLOY] #18 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #19 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T00:08:42.250Z] [DEPLOY] #19 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #20 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T00:08:42.250Z] [DEPLOY] #20 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #21 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T00:08:42.250Z] [DEPLOY] #21 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #22 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:08:42.250Z] [DEPLOY] #22 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T00:08:42.408Z] [DEPLOY] #23 CACHED [2026-06-10T00:08:42.409Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T00:08:42.695Z] [DEPLOY] #24 DONE 0.4s [2026-06-10T00:08:42.849Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T00:08:43.023Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T00:08:43.179Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T00:09:23.541Z] [DEPLOY] #26 DONE 40.5s [2026-06-10T00:09:23.700Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T00:09:23.700Z] [DEPLOY] #27 exporting layers [2026-06-10T00:09:40.718Z] [DEPLOY] #27 exporting layers 17.2s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest sha256:9352a750659426263eada41531f1fd2744140de59553e622f646bcfb0759d630 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting config sha256:3997ad39f051abb15892804088f85499bc77869828036351f60b2c6efeea2713 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting attestation manifest sha256:cd0175d46a188ad7986a0316e9ae44cdee21f1908cc8e852824dd2897da6ef98 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 [2026-06-10T00:09:40.986Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 0.0s done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T00:09:46.701Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 5.9s done [2026-06-10T00:09:46.891Z] [DEPLOY] #27 DONE 23.2s [2026-06-10T00:09:46.994Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T00:09:47.094Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T00:09:47.094Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T00:09:47.261Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T00:09:47.261Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T00:09:47.261Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:09:47.588Z] [DEPLOY] #2 DONE 1.3s [2026-06-10T00:09:47.739Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:09:47.739Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:09:47.739Z] [DEPLOY] #3 CACHED [2026-06-10T00:09:47.739Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.220Z] [DEPLOY] #30 ... [2026-06-10T00:09:48.221Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:09:48.221Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T00:09:48.371Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.492Z] [DEPLOY] #30 DONE 0.7s [2026-06-10T00:09:48.741Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T00:09:48.742Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T00:09:48.742Z] [DEPLOY] #31 DONE 0.1s [2026-06-10T00:09:49.782Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:49.782Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T00:09:49.782Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.782Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.798Z] [DEPLOY] #33 ... [2026-06-10T00:09:49.798Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:09:49.798Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.2s done [2026-06-10T00:09:49.798Z] [DEPLOY] #6 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:50.043Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.2s done [2026-06-10T00:09:50.043Z] [DEPLOY] #33 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:50.043Z] [DEPLOY] #32 transferring context: 165.24kB 0.0s done [2026-06-10T00:09:50.043Z] [DEPLOY] #32 DONE 0.1s [2026-06-10T00:09:50.044Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-10T00:09:50.044Z] [DEPLOY] #10 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:09:50.044Z] [DEPLOY] #34 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:09:50.044Z] [DEPLOY] #35 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T00:09:50.045Z] [DEPLOY] #36 CACHED [2026-06-10T00:09:50.045Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T00:09:50.455Z] [DEPLOY] #37 DONE 0.6s [2026-06-10T00:09:50.626Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 > frontend@1.0.0 build /app [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 > tsc && vite build [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 [2026-06-10T00:10:50.491Z] [DEPLOY] #38 60.02 vite v5.4.21 building for production... [2026-06-10T00:10:51.187Z] [DEPLOY] #38 60.71 transforming... [2026-06-10T00:10:51.698Z] [DEPLOY] #38 61.22 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 npx update-browserslist-db@latest [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T00:11:16.706Z] [DEPLOY] #38 86.23 ✓ 4326 modules transformed. [2026-06-10T00:11:18.458Z] [DEPLOY] #38 87.98 rendering chunks... [2026-06-10T00:11:21.371Z] [DEPLOY] #38 90.90 computing gzip size... [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/registerSW.js 0.13 kB [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/manifest.webmanifest 0.54 kB [2026-06-10T00:11:21.611Z] [DEPLOY] #38 91.14 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Using dynamic import() to code-split the application [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-RRJDHv6S.css 163.33 kB │ gzip: 24.93 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index.es-CyiEOaTq.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-D_oG79p0.js 4,161.99 kB │ gzip: 1,080.46 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 ✓ built in 31.06s [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 PWA v1.2.0 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 Building src/sw.ts service worker ("es" format)... [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.16 vite v5.4.21 building for production... [2026-06-10T00:11:23.198Z] [DEPLOY] #38 92.72 transforming... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.73 ✓ 1 modules transformed. [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 rendering chunks... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 computing gzip size... [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 ✓ built in 1.59s [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 PWA v1.2.0 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 mode injectManifest [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 format: es [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 precache 15 entries (4951.25 KiB) [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 files generated [2026-06-10T00:11:23.571Z] [DEPLOY] #38 93.10 dist/sw.js [2026-06-10T00:11:24.172Z] [DEPLOY] #38 DONE 93.7s [2026-06-10T00:11:25.769Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T00:11:25.769Z] [DEPLOY] #39 CACHED [2026-06-10T00:11:25.769Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T00:11:25.998Z] [DEPLOY] #40 CACHED [2026-06-10T00:11:25.998Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T00:11:25.998Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T00:11:25.998Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T00:11:25.998Z] [DEPLOY] #42 exporting layers [2026-06-10T00:11:26.111Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest sha256:d2e2efce618398e679b1101e3ab1d3f9b7d5840b65d0dd98f8ff0c2d541da847 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting config sha256:29032daf4e6eb72fbc557d9fcb147ae0e57f76990e7c391e558cc572e273d051 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting attestation manifest sha256:0ff61557548b8aa9fb8e799e9ce12cc93fc73376e7d817da91399f9c3cd4789b 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest list sha256:7e5ece65741734a8370e84c80956c94e5062f78e0b8912b8e857710569c2e594 done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T00:11:26.418Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T00:11:26.418Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T00:11:26.425Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T00:11:26.425Z] [STDERR] backend Built [2026-06-10T00:11:26.425Z] [STDERR] frontend Built [2026-06-10T00:11:26.434Z] [DEPLOY] [2026-06-10 00:11:26] ✓ New images built successfully [2026-06-10T00:11:26.436Z] [DEPLOY] [2026-06-10 00:11:26] STEP: Step 5/8: Running database migrations... [2026-06-10T00:11:26.437Z] [DEPLOY] [2026-06-10 00:11:26] Checking for pending migrations... [2026-06-10T00:11:26.440Z] [DEPLOY] [2026-06-10 00:11:26] Applying schema changes... [2026-06-10T00:11:28.867Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:11:28.910Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T00:11:29.590Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:30.103Z] [DEPLOY] [2026-06-10 00:11:30] ✓ Database schema already in sync [2026-06-10T00:11:30.104Z] [DEPLOY] [2026-06-10 00:11:30] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T00:11:30.105Z] [DEPLOY] [2026-06-10 00:11:30] Updating backend container... [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-redis Running [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T00:11:40.930Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T00:11:40.972Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-backend Starting [2026-06-10T00:11:41.722Z] [STDERR] Container clicknex-backend Started [2026-06-10T00:11:46.800Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T00:11:48.853Z] [DEPLOY] [2026-06-10 00:11:48] ✓ Backend health check passed (healthy) [2026-06-10T00:11:48.854Z] [DEPLOY] [2026-06-10 00:11:48] Updating frontend container... [2026-06-10T00:11:49.082Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T00:11:49.615Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T00:11:49.674Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T00:11:49.949Z] [STDERR] Container clicknex-frontend Started [2026-06-10T00:11:49.961Z] [DEPLOY] [2026-06-10 00:11:49] ✓ New containers started [2026-06-10T00:11:49.963Z] [DEPLOY] [2026-06-10 00:11:49] STEP: Step 7/8: Running health checks... [2026-06-10T00:11:50.017Z] [DEPLOY] [2026-06-10 00:11:50] ✓ Backend health check passed (healthy) [2026-06-10T00:11:50.088Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T00:11:52.150Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T00:11:54.196Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T00:11:56.289Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Frontend health check passed (healthy) [2026-06-10T00:11:56.290Z] [DEPLOY] [2026-06-10 00:11:56] ✓ All health checks passed [2026-06-10T00:11:56.292Z] [DEPLOY] [2026-06-10 00:11:56] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T00:11:56.694Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Cleanup completed (disco: ?%) [2026-06-10T00:11:56.696Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:11:56.696Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T00:11:56.697Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.699Z] [DEPLOY] ║ Commit: 04932f0 ║ [2026-06-10T00:11:56.706Z] [DEPLOY] ║ Time: 2026-06-10 00:11:56 ║ [2026-06-10T00:11:56.709Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ Services: ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:11:56.713Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T00:11:56.716Z] [INFO] ====================================================== [2026-06-10T00:11:56.716Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.11 em 604s [2026-06-10T00:11:56.716Z] [INFO] ====================================================== [2026-06-10T03:28:49.119Z] [INFO] Deploy manual disparado (commit d3d452a1) [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] ====================================================== [2026-06-10T03:49:41.821Z] [INFO] Deploy manual disparado (commit dc4b7aff) [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] ====================================================== [2026-06-10T04:02:50.837Z] [INFO] Deploy manual disparado (commit fdc240b2) [2026-06-10T04:02:50.839Z] [INFO] ====================================================== [2026-06-10T04:02:50.839Z] [INFO] DEPLOY INICIADO — v1.0.14 [2026-06-10T04:02:50.839Z] [INFO] Commit: fdc240b207690726070f90b2f9746e639fa737b4 [2026-06-10T04:02:50.839Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T04:02:50.839Z] [INFO] Branch: main [2026-06-10T04:02:50.839Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T04:02:50.839Z] [INFO] ====================================================== [2026-06-10T04:02:50.839Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T04:02:50.839Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T04:02:50.848Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T04:02:50.848Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T04:02:50.848Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T04:02:50.849Z] [DEPLOY] [2026-06-10 04:02:50] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T04:02:52.733Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T04:02:52.733Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T04:02:52.733Z] [STDERR] dc4b7af..fdc240b main -> origin/main [2026-06-10T04:02:52.766Z] [DEPLOY] [2026-06-10 04:02:52] Deploy do commit validado pelo CI: fdc240b207690726070f90b2f9746e639fa737b4 [2026-06-10T04:02:52.815Z] [STDERR] Reset branch 'main' [2026-06-10T04:02:52.815Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T04:02:52.817Z] [DEPLOY] [2026-06-10 04:02:52] ✓ Code updated to latest version [2026-06-10T04:02:52.818Z] [DEPLOY] [2026-06-10 04:02:52] STEP: Step 2/8: Backing up current state... [2026-06-10T04:02:52.820Z] [DEPLOY] [2026-06-10 04:02:52] STEP: Creating backup of current state... [2026-06-10T04:02:53.101Z] [DEPLOY] [2026-06-10 04:02:53] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T04:02:53.105Z] [DEPLOY] [2026-06-10 04:02:53] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T04:02:53.112Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T04:02:53.112Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T04:02:53.112Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T04:02:53.113Z] [DEPLOY] Database: saas_crm [2026-06-10T04:02:53.113Z] [DEPLOY] Host: localhost:5432 [2026-06-10T04:02:53.113Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz [2026-06-10T04:02:53.113Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T04:07:19.360Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz (2.9G) [2026-06-10T04:07:19.367Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T04:07:19.378Z] [DEPLOY] removendo antigo: backup_20260610_000155.sql.gz [2026-06-10T04:07:19.398Z] [DEPLOY] Current backups: [2026-06-10T04:07:19.402Z] [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-10T04:07:19.402Z] [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-10T04:07:19.402Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 04:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz [2026-06-10T04:07:19.402Z] [DEPLOY] Backup completed! [2026-06-10T04:07:19.405Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Database backup completed [2026-06-10T04:07:19.409Z] [DEPLOY] [2026-06-10 04:07:19] STEP: Step 4/8: Building new Docker images... [2026-06-10T04:07:19.411Z] [DEPLOY] [2026-06-10 04:07:19] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T04:07:19.906Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T04:07:19.956Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T04:07:20.137Z] [STDERR] time="2026-06-10T04:07:20Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T04:07:20.443Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T04:07:20.444Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T04:07:20.444Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-10T04:07:20.444Z] [DEPLOY] #1 DONE 0.0s [2026-06-10T04:07:20.444Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T04:07:21.098Z] [DEPLOY] #2 DONE 0.8s [2026-06-10T04:07:21.290Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T04:07:21.290Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T04:07:21.294Z] [DEPLOY] #3 CACHED [2026-06-10T04:07:21.294Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T04:07:22.035Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T04:07:22.189Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T04:07:22.217Z] [DEPLOY] #5 transferring context: [2026-06-10T04:07:22.346Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T04:07:22.346Z] [DEPLOY] #5 DONE 0.2s [2026-06-10T04:07:22.346Z] [DEPLOY] #6 [backend internal] load build context [2026-06-10T04:07:22.346Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T04:07:22.346Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T04:07:22.346Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T04:07:22.475Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T04:07:22.475Z] [DEPLOY] #6 [backend internal] load build context [2026-06-10T04:07:22.475Z] [DEPLOY] #6 transferring context: 300.64kB 0.1s done [2026-06-10T04:07:22.621Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T04:07:22.622Z] [DEPLOY] #8 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:07:22.622Z] [DEPLOY] #8 CACHED [2026-06-10T04:07:22.622Z] [DEPLOY] #9 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T04:07:22.622Z] [DEPLOY] #9 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #10 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T04:07:22.623Z] [DEPLOY] #10 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-10T04:07:22.623Z] [DEPLOY] #11 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #12 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T04:07:22.623Z] [DEPLOY] #12 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #13 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:07:22.623Z] [DEPLOY] #13 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #14 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:07:22.623Z] [DEPLOY] #14 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #15 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:07:22.623Z] [DEPLOY] #15 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #16 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T04:07:22.623Z] [DEPLOY] #16 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T04:07:22.623Z] [DEPLOY] #17 DONE 0.1s [2026-06-10T04:07:22.623Z] [DEPLOY] #18 [backend builder 7/10] COPY . . [2026-06-10T04:07:22.925Z] [DEPLOY] #18 DONE 0.4s [2026-06-10T04:07:22.925Z] [DEPLOY] #19 [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-10T04:07:23.938Z] [DEPLOY] #19 1.316 Lockfile is up to date, resolution step is skipped [2026-06-10T04:07:24.058Z] [DEPLOY] #19 1.436 Progress: resolved 1, reused 0, downloaded 0, added 0 [2026-06-10T04:07:24.159Z] [DEPLOY] #19 1.538 Packages: +232 [2026-06-10T04:07:24.160Z] [DEPLOY] #19 1.538 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 ╭──────────────────────────────────────────────╮ [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 │ │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ Update available! 10.25.0 → 11.5.2. │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ Changelog: https://pnpm.io/v/11.5.2 │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ To update, run: corepack use pnpm@11.5.2 │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 ╰──────────────────────────────────────────────╯ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 [2026-06-10T04:07:25.074Z] [DEPLOY] #19 2.452 Progress: resolved 232, reused 15, downloaded 0, added 0 [2026-06-10T04:07:26.076Z] [DEPLOY] #19 3.454 Progress: resolved 232, reused 232, downloaded 0, added 0 [2026-06-10T04:07:27.078Z] [DEPLOY] #19 4.456 Progress: resolved 232, reused 232, downloaded 0, added 15 [2026-06-10T04:07:28.081Z] [DEPLOY] #19 5.456 Progress: resolved 232, reused 232, downloaded 0, added 19 [2026-06-10T04:07:29.078Z] [DEPLOY] #19 6.457 Progress: resolved 232, reused 232, downloaded 0, added 21 [2026-06-10T04:07:30.085Z] [DEPLOY] #19 7.464 Progress: resolved 232, reused 232, downloaded 0, added 27 [2026-06-10T04:07:31.086Z] [DEPLOY] #19 8.464 Progress: resolved 232, reused 232, downloaded 0, added 28 [2026-06-10T04:07:31.419Z] [DEPLOY] #19 ... [2026-06-10T04:07:31.420Z] [DEPLOY] #20 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T04:07:31.420Z] [DEPLOY] #20 2.692 Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 ✔ 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.99s [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 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-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 DONE 8.5s [2026-06-10T04:07:31.575Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 > backend@0.0.1 build /app [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 > nest build [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 [2026-06-10T04:07:36.729Z] [DEPLOY] #21 ... [2026-06-10T04:07:36.729Z] [DEPLOY] #19 [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-10T04:07:36.729Z] [DEPLOY] #19 9.464 Progress: resolved 232, reused 232, downloaded 0, added 111 [2026-06-10T04:07:36.729Z] [DEPLOY] #19 10.47 Progress: resolved 232, reused 232, downloaded 0, added 154 [2026-06-10T04:07:36.729Z] [DEPLOY] #19 11.47 Progress: resolved 232, reused 232, downloaded 0, added 198 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 12.47 Progress: resolved 232, reused 232, downloaded 0, added 212 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.36 Progress: resolved 232, reused 232, downloaded 0, added 232, done [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 dependencies: [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/common 11.1.9 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/config 4.0.2 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/core 11.1.9 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/event-emitter 3.1.0 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/jwt 11.0.2 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/passport 11.0.5 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/platform-express 11.1.9 [2026-06-10T04:07:36.736Z] [DEPLOY] #19 13.84 + @nestjs/schedule 6.1.0 [2026-06-10T04:07:36.736Z] [DEPLOY] #19 13.84 + @nestjs/serve-static 5.0.4 [2026-06-10T04:07:36.739Z] [DEPLOY] #19 13.84 + @nestjs/swagger 11.2.3 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @nestjs/throttler 6.5.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @prisma/client 5.22.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @sendgrid/mail 8.1.6 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + adm-zip 0.5.16 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + argon2 0.44.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + axios 1.13.2 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + class-transformer 0.5.1 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + class-validator 0.14.3 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + compression 1.8.1 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + express 5.1.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + form-data 4.0.5 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + helmet 8.1.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + multer 2.0.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + passport 0.7.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + passport-jwt 4.0.1 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + pdf-parse 2.4.5 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + pdf2pic 3.2.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + prisma 5.22.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + reflect-metadata 0.2.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + rxjs 7.8.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + sharp 0.34.5 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + stripe 22.1.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + swagger-ui-express 5.0.1 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + uuid 13.0.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + web-push 3.6.7 [2026-06-10T04:07:36.773Z] [DEPLOY] #19 13.84 + xlsx 0.18.5 [2026-06-10T04:07:36.773Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.84 devDependencies: skipped [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 ╭ Warning ─────────────────────────────────────────────────────────────────────╮ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ │ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ Ignored build scripts: @nestjs/core@11.1.9, @prisma/client@5.22.0, │ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ @prisma/engines@5.22.0, @scarf/scarf@1.4.0, argon2@0.44.0, │ [2026-06-10T04:07:36.775Z] [DEPLOY] #19 13.91 │ prisma@5.22.0. │ [2026-06-10T04:07:36.775Z] [DEPLOY] #19 13.91 │ Run "pnpm approve-builds" to pick which dependencies should be allowed │ [2026-06-10T04:07:36.776Z] [DEPLOY] #19 13.91 │ to run scripts. │ [2026-06-10T04:07:36.776Z] [DEPLOY] #19 13.91 │ │ [2026-06-10T04:07:36.777Z] [DEPLOY] #19 13.91 ╰──────────────────────────────────────────────────────────────────────────────╯ [2026-06-10T04:07:36.778Z] [DEPLOY] #19 13.92 Done in 13.3s using pnpm v10.25.0 [2026-06-10T04:07:36.778Z] [DEPLOY] #19 DONE 14.1s [2026-06-10T04:07:36.905Z] [DEPLOY] #22 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T04:07:39.839Z] [DEPLOY] #22 3.089 Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:07:45.852Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 3.34s [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 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-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:46.236Z] [DEPLOY] #22 DONE 9.5s [2026-06-10T04:07:46.236Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T04:08:19.530Z] [DEPLOY] #21 DONE 48.1s [2026-06-10T04:08:19.685Z] [DEPLOY] #23 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 total 80 [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 6 root root 4096 Jun 10 04:08 . [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 4 root root 4096 Jun 10 04:08 .. [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 3 root root 4096 Jun 10 04:08 __mocks__ [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 181 Jun 10 04:07 app.controller.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 1611 Jun 10 04:07 app.controller.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 436 Jun 10 04:07 app.controller.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 35 Jun 10 04:08 app.module.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 8972 Jun 10 04:08 app.module.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2525 Jun 10 04:08 app.module.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 60 Jun 10 04:07 app.service.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 981 Jun 10 04:07 app.service.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 281 Jun 10 04:07 app.service.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 4 root root 4096 Jun 10 04:07 common [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 11 Jun 10 04:08 main.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2914 Jun 10 04:08 main.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2491 Jun 10 04:08 main.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 58 root root 4096 Jun 10 04:08 modules [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 2 root root 4096 Jun 10 04:07 prisma [2026-06-10T04:08:20.153Z] [DEPLOY] #23 DONE 0.5s [2026-06-10T04:08:22.441Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T04:08:22.813Z] [DEPLOY] #24 DONE 0.4s [2026-06-10T04:08:22.969Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T04:08:23.128Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T04:08:23.283Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T04:08:59.135Z] [DEPLOY] #26 DONE 36.0s [2026-06-10T04:08:59.299Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T04:08:59.299Z] [DEPLOY] #27 exporting layers [2026-06-10T04:09:23.186Z] [DEPLOY] #27 exporting layers 24.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting manifest sha256:e52f4db96eb083cef476c24f057abb9d6e1723e6e44746d8a895aefbc3af40bc done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting config sha256:b55f1f29f1938f44147cfef5165e54c1534d21e8c26bad218a0becf434b98de4 done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting attestation manifest sha256:b363f784244cbc510fdbe22ef443acb08f2ceeb03d9f962c712c1f7bec166386 0.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting manifest list sha256:9f977372dd0ed2b9b6208857565d80e5b44b3db6e6b2a0dad50caa78014efdcf 0.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T04:09:23.411Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T04:09:35.395Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 12.1s done [2026-06-10T04:09:35.592Z] [DEPLOY] #27 DONE 36.3s [2026-06-10T04:09:35.660Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T04:09:35.771Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T04:09:35.772Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T04:09:35.772Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T04:09:35.773Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T04:09:35.773Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T04:09:36.252Z] [DEPLOY] #2 DONE 1.3s [2026-06-10T04:09:36.395Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T04:09:36.395Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T04:09:36.395Z] [DEPLOY] #3 CACHED [2026-06-10T04:09:36.395Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T04:09:36.895Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T04:09:36.895Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T04:09:37.190Z] [DEPLOY] #30 DONE 0.8s [2026-06-10T04:09:37.354Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T04:09:37.359Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T04:09:37.359Z] [DEPLOY] #31 DONE 0.0s [2026-06-10T04:09:37.966Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T04:09:37.966Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T04:09:37.966Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T04:09:37.966Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-10T04:09:37.966Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T04:09:37.966Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T04:09:37.966Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-10T04:09:37.966Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T04:09:37.997Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T04:09:38.223Z] [DEPLOY] #32 transferring context: 214.91kB 0.1s done [2026-06-10T04:09:38.228Z] [DEPLOY] #32 DONE 0.2s [2026-06-10T04:09:38.401Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:09:38.401Z] [DEPLOY] #34 CACHED [2026-06-10T04:09:38.401Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-10T04:09:38.401Z] [DEPLOY] #11 CACHED [2026-06-10T04:09:38.401Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:09:38.401Z] [DEPLOY] #35 CACHED [2026-06-10T04:09:38.401Z] [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-10T04:09:38.402Z] [DEPLOY] #36 CACHED [2026-06-10T04:09:38.402Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T04:09:38.665Z] [DEPLOY] #37 DONE 0.4s [2026-06-10T04:09:38.820Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T04:09:39.585Z] [DEPLOY] #38 0.915 [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 > frontend@1.0.0 build /app [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 > tsc && vite build [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 [2026-06-10T04:10:35.134Z] [DEPLOY] #38 56.46 vite v5.4.21 building for production... [2026-06-10T04:10:35.798Z] [DEPLOY] #38 57.13 transforming... [2026-06-10T04:10:36.009Z] [DEPLOY] #38 57.19 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T04:10:36.010Z] [DEPLOY] #38 57.19 npx update-browserslist-db@latest [2026-06-10T04:10:36.010Z] [DEPLOY] #38 57.19 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T04:10:59.435Z] [DEPLOY] #38 80.76 ✓ 4326 modules transformed. [2026-06-10T04:11:01.252Z] [DEPLOY] #38 82.58 rendering chunks... [2026-06-10T04:11:04.168Z] [DEPLOY] #38 85.50 computing gzip size... [2026-06-10T04:11:04.350Z] [DEPLOY] #38 85.68 dist/registerSW.js 0.13 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/manifest.webmanifest 0.54 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/assets/index-BA0l_c52.css 163.60 kB │ gzip: 24.98 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/index.es-KQZj9-SK.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/index-Bapclaxc.js 4,164.55 kB │ gzip: 1,081.38 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Using dynamic import() to code-split the application [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 ✓ built in 29.18s [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 PWA v1.2.0 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 Building src/sw.ts service worker ("es" format)... [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 vite v5.4.21 building for production... [2026-06-10T04:11:06.176Z] [DEPLOY] #38 87.51 transforming... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.51 ✓ 1 modules transformed. [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.52 rendering chunks... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.52 computing gzip size... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.53 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.53 ✓ built in 1.83s [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 PWA v1.2.0 [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 mode injectManifest [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 format: es [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 precache 15 entries (4954.03 KiB) [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 files generated [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 dist/sw.js [2026-06-10T04:11:06.947Z] [DEPLOY] #38 DONE 88.3s [2026-06-10T04:11:09.254Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T04:11:09.255Z] [DEPLOY] #39 CACHED [2026-06-10T04:11:09.255Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T04:11:09.356Z] [DEPLOY] #40 CACHED [2026-06-10T04:11:09.356Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T04:11:09.356Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T04:11:09.517Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T04:11:09.518Z] [DEPLOY] #42 exporting layers [2026-06-10T04:11:09.630Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T04:11:09.630Z] [DEPLOY] #42 exporting manifest sha256:7e8d9105b032821c12cba473a0c5636882771d2faa092995540e5f52ba1e5e43 [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting manifest sha256:7e8d9105b032821c12cba473a0c5636882771d2faa092995540e5f52ba1e5e43 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting config sha256:44d75ba9931474716c0d5039ab5a85fe05a79222eb2962829af10b47677272c0 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting attestation manifest sha256:26a9559c57fa948cdcdadbf1f49f51111be0c2c585b1d59fe0af33e66aedaf9c 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting manifest list sha256:9f64ee7585b374fd31fb3907b096d4ae89c9eea6f901ca9a81e3255fccc8b9ed done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T04:11:09.960Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T04:11:09.960Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T04:11:09.971Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T04:11:09.972Z] [STDERR] backend Built [2026-06-10T04:11:09.972Z] [STDERR] frontend Built [2026-06-10T04:11:09.987Z] [DEPLOY] [2026-06-10 04:11:09] ✓ New images built successfully [2026-06-10T04:11:09.988Z] [DEPLOY] [2026-06-10 04:11:09] STEP: Step 5/8: Running database migrations... [2026-06-10T04:11:09.989Z] [DEPLOY] [2026-06-10 04:11:09] Checking for pending migrations... [2026-06-10T04:11:09.991Z] [DEPLOY] [2026-06-10 04:11:09] Applying schema changes... [2026-06-10T04:11:12.777Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:11:12.820Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T04:11:13.518Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T04:11:13.621Z] [DEPLOY] npm notice [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice [2026-06-10T04:11:13.989Z] [DEPLOY] [2026-06-10 04:11:13] ✓ Database schema already in sync [2026-06-10T04:11:13.990Z] [DEPLOY] [2026-06-10 04:11:13] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T04:11:13.991Z] [DEPLOY] [2026-06-10 04:11:13] Updating backend container... [2026-06-10T04:11:14.211Z] [STDERR] Container clicknex-redis Running [2026-06-10T04:11:14.211Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T04:11:24.723Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T04:11:24.758Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T04:11:25.264Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T04:11:25.264Z] [STDERR] Container clicknex-backend Starting [2026-06-10T04:11:25.502Z] [STDERR] Container clicknex-backend Started [2026-06-10T04:11:30.587Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T04:11:32.647Z] [DEPLOY] [2026-06-10 04:11:32] ✓ Backend health check passed (healthy) [2026-06-10T04:11:32.649Z] [DEPLOY] [2026-06-10 04:11:32] Updating frontend container... [2026-06-10T04:11:32.831Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T04:11:33.345Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T04:11:33.393Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T04:11:33.623Z] [STDERR] Container clicknex-frontend Started [2026-06-10T04:11:33.632Z] [DEPLOY] [2026-06-10 04:11:33] ✓ New containers started [2026-06-10T04:11:33.633Z] [DEPLOY] [2026-06-10 04:11:33] STEP: Step 7/8: Running health checks... [2026-06-10T04:11:33.683Z] [DEPLOY] [2026-06-10 04:11:33] ✓ Backend health check passed (healthy) [2026-06-10T04:11:33.731Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T04:11:35.797Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T04:11:37.846Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T04:11:39.901Z] [DEPLOY] [2026-06-10 04:11:39] ✓ Frontend health check passed (healthy) [2026-06-10T04:11:39.904Z] [DEPLOY] [2026-06-10 04:11:39] ✓ All health checks passed [2026-06-10T04:11:39.905Z] [DEPLOY] [2026-06-10 04:11:39] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T04:11:40.581Z] [DEPLOY] [2026-06-10 04:11:40] ✓ Cleanup completed (disco: ?%) [2026-06-10T04:11:40.587Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T04:11:40.587Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T04:11:40.587Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T04:11:40.606Z] [DEPLOY] ║ Commit: fdc240b ║ [2026-06-10T04:11:40.610Z] [DEPLOY] ║ Time: 2026-06-10 04:11:40 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ Services: ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T04:11:40.620Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T04:11:40.628Z] [INFO] ====================================================== [2026-06-10T04:11:40.628Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.14 em 530s [2026-06-10T04:11:40.628Z] [INFO] ======================================================