Files
PolyWeather/deploy.ps1
2026-06-14 04:40:02 +08:00

11 lines
331 B
PowerShell

$VPS = "root@172.245.214.111"
$PROJECT = "/root/PolyWeather"
Write-Host "🚀 Deploying to $VPS..." -ForegroundColor Cyan
ssh $VPS "cd $PROJECT && git pull && docker compose up -d --build"
Write-Host "✅ Deploy complete. Checking health..." -ForegroundColor Green
Start-Sleep 8
ssh $VPS "curl -s http://localhost:8000/healthz"