upd deploy process
This commit is contained in:
parent
5350c5ff32
commit
66be6a09ea
|
|
@ -8,7 +8,9 @@
|
|||
"Bash(taskkill:*)",
|
||||
"Bash(npm install:*)",
|
||||
"Bash(pkill:*)",
|
||||
"Bash(npm run db:generate:*)"
|
||||
"Bash(npm run db:generate:*)",
|
||||
"Bash(docker ps:*)",
|
||||
"Bash(docker compose:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ COPY --from=client-build /app/client/build/ public/
|
|||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3001
|
||||
ENV DATABASE_PATH=/data/ka-note.db
|
||||
ENV DATABASE_PATH=/home/data/ka-note.db
|
||||
|
||||
EXPOSE 3001
|
||||
CMD ["node", "--max-http-header-size=65536", "server/dist/index.js"]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ $RG = "rg-koogle-prod"
|
|||
$IMAGE = "$ACR.azurecr.io/${APP}:latest"
|
||||
|
||||
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" }
|
||||
|
||||
Write-Host "=== Build Docker image ===" -ForegroundColor Cyan
|
||||
|
|
|
|||
Loading…
Reference in New Issue