添加一键部署脚本:deploy.sh (bash) 和 deploy.ps1 (PowerShell)

This commit is contained in:
2569718930@qq.com
2026-05-19 13:19:03 +08:00
parent 53c9ed2118
commit e56040a855
2 changed files with 22 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
VPS="root@38.54.27.70"
PROJECT="/root/PolyWeather"
echo "🚀 Deploying to $VPS..."
ssh "$VPS" "cd $PROJECT && git pull && docker compose up -d --build"
echo "✅ Deploy complete. Checking health..."
sleep 8
ssh "$VPS" "curl -s http://localhost:8000/healthz"