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"