Files
PolyWeather/deploy.sh
T
2026-05-19 14:28:20 +08:00

13 lines
281 B
Bash

#!/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"