From e56040a855d328798ea4379110eaa50082fb0998 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 19 May 2026 13:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E9=94=AE=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=84=9A=E6=9C=AC=EF=BC=9Adeploy.sh=20(bash)=20?= =?UTF-8?q?=E5=92=8C=20deploy.ps1=20(PowerShell)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ps1 | 10 ++++++++++ deploy.sh | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 deploy.ps1 create mode 100644 deploy.sh diff --git a/deploy.ps1 b/deploy.ps1 new file mode 100644 index 00000000..04d6e2d3 --- /dev/null +++ b/deploy.ps1 @@ -0,0 +1,10 @@ +$VPS = "root@38.54.27.70" +$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" diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 00000000..9ea5238d --- /dev/null +++ b/deploy.sh @@ -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"