2026-06-14 04:40:02 +08:00
|
|
|
$VPS = "root@172.245.214.111"
|
2026-05-19 13:19:03 +08:00
|
|
|
$PROJECT = "/root/PolyWeather"
|
|
|
|
|
|
|
|
|
|
Write-Host "🚀 Deploying to $VPS..." -ForegroundColor Cyan
|
|
|
|
|
|
2026-06-26 21:16:17 +08:00
|
|
|
ssh $VPS @"
|
|
|
|
|
cd $PROJECT || exit 1
|
|
|
|
|
git pull || exit 1
|
|
|
|
|
docker compose stop polyweather || true
|
|
|
|
|
pkill -TERM -f 'python(3)? .*bot_[l]istener\.py' || true
|
|
|
|
|
sleep 2
|
|
|
|
|
pkill -KILL -f 'python(3)? .*bot_[l]istener\.py' || true
|
|
|
|
|
docker compose up -d --build
|
|
|
|
|
"@
|
2026-05-19 13:19:03 +08:00
|
|
|
|
|
|
|
|
Write-Host "✅ Deploy complete. Checking health..." -ForegroundColor Green
|
|
|
|
|
Start-Sleep 8
|
|
|
|
|
ssh $VPS "curl -s http://localhost:8000/healthz"
|