upd deploy process

This commit is contained in:
beo3000 2026-02-20 21:49:42 +01:00
parent 5350c5ff32
commit 66be6a09ea
3 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,9 @@
"Bash(taskkill:*)", "Bash(taskkill:*)",
"Bash(npm install:*)", "Bash(npm install:*)",
"Bash(pkill:*)", "Bash(pkill:*)",
"Bash(npm run db:generate:*)" "Bash(npm run db:generate:*)",
"Bash(docker ps:*)",
"Bash(docker compose:*)"
] ]
} }
} }

View File

@ -43,7 +43,7 @@ COPY --from=client-build /app/client/build/ public/
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PORT=3001 ENV PORT=3001
ENV DATABASE_PATH=/data/ka-note.db ENV DATABASE_PATH=/home/data/ka-note.db
EXPOSE 3001 EXPOSE 3001
CMD ["node", "--max-http-header-size=65536", "server/dist/index.js"] CMD ["node", "--max-http-header-size=65536", "server/dist/index.js"]

View File

@ -6,7 +6,9 @@ $RG = "rg-koogle-prod"
$IMAGE = "$ACR.azurecr.io/${APP}:latest" $IMAGE = "$ACR.azurecr.io/${APP}:latest"
Write-Host "=== Generate migrations ===" -ForegroundColor Cyan Write-Host "=== Generate migrations ===" -ForegroundColor Cyan
npx drizzle-kit generate --config server/drizzle.config.ts Push-Location server
npx drizzle-kit generate
Pop-Location
if ($LASTEXITCODE -ne 0) { throw "Migration generation failed" } if ($LASTEXITCODE -ne 0) { throw "Migration generation failed" }
Write-Host "=== Build Docker image ===" -ForegroundColor Cyan Write-Host "=== Build Docker image ===" -ForegroundColor Cyan