Initial commit: AARS backend + frontend + holiday/leave phase 1+2

This commit is contained in:
IT Dog
2026-07-19 20:10:15 +08:00
commit bbc0048c24
49 changed files with 13375 additions and 0 deletions
Executable
+30
View File
@@ -0,0 +1,30 @@
#!/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 "=========================================="