Initial commit: AARS backend + frontend + holiday/leave phase 1+2
This commit is contained in:
@@ -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 "=========================================="
|
||||
Reference in New Issue
Block a user