fix: update.sh docker compose v2 and server-core swagger docs

This commit is contained in:
datadunia
2026-05-23 15:22:07 +07:00
parent 64e29609b3
commit 00c847e391
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -20,15 +20,15 @@ git submodule update --init --recursive --remote || echo "[!] Git submodule upda
# 3. Source variabel dari .env untuk dimasukkan ke build process (contoh: VITE_API_BASE_URL)
echo "[+] Sourcing environment variables from root .env..."
export $(grep -v '^#' .env | xargs)
set -a && . .env && set +a
# 4. Rebuild Images & Restart Containers
echo "[+] Rebuilding Docker images (injecting new environment variables)..."
# Menggunakan --build-arg untuk memastikan Vue/Vite membaca domain API baru
docker-compose build --build-arg VITE_API_BASE_URL=$VITE_API_BASE_URL
docker compose build --build-arg VITE_API_BASE_URL=$VITE_API_BASE_URL
echo "[+] Restarting containers..."
docker-compose up -d
docker compose up -d
# 5. Cleanup
echo "[+] Cleaning up unused dangling images to free up space..."