CI 部署前先 docker compose down 避免容器名称冲突
This commit is contained in:
@@ -76,6 +76,7 @@ jobs:
|
||||
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
|
||||
cd /root/PolyWeather
|
||||
git fetch origin main && git reset --hard origin/main
|
||||
docker compose down
|
||||
docker compose up -d --build
|
||||
sleep 10
|
||||
curl -s http://localhost:8000/healthz
|
||||
|
||||
Reference in New Issue
Block a user