fix(ops): add down before build+up in update.sh + submodule refs
This commit is contained in:
@@ -22,7 +22,10 @@ git submodule update --init --recursive --remote || echo "[!] Git submodule upda
|
||||
echo "[+] Sourcing environment variables from root .env..."
|
||||
set -a && . .env && set +a
|
||||
|
||||
# 4. Rebuild Images & Restart Containers
|
||||
# 4. Gracefully stop existing containers, Rebuild Images & Restart
|
||||
echo "[+] Stopping existing containers..."
|
||||
docker compose down
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user