Files
aars/deploy.sh

31 lines
706 B
Bash
Executable File

#!/bin/bash
# AARS full deploy: build image + restart container + sync static to nginx root
# Usage: bash /root/aars/deploy.sh
set -e
cd /root/aars
echo "=========================================="
echo "AARS Deploy — $(date)"
echo "=========================================="
echo ""
echo "[1/3] Building Docker image..."
docker compose build aars
echo ""
echo "[2/3] Restarting container..."
docker compose up -d aars
sleep 5
echo ""
echo "[3/3] Syncing static files to nginx root..."
bash /root/aars/deploy_static.sh
echo ""
echo "=========================================="
echo "Deploy complete ✓"
echo "Reload https://excel.donton.cloud/"
echo "=========================================="