260304:1240 20260304:1200 update app to lcbp3 #2
Some checks failed
Build and Deploy / deploy (push) Failing after 1m6s

This commit is contained in:
admin
2026-03-04 12:40:27 +07:00
parent ad77a2ae94
commit c58b02f6b5
2 changed files with 8 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ jobs:
cp /share/np-dms/app/source/lcbp3/specs/04-Infrastructure-OPS/04-00-docker-compose/docker-compose-app.yml /share/np-dms/app/docker-compose-app.yml
cd /share/np-dms/app
# ⚠️ ลบ container เดิมที่อาจสร้างจาก Container Station
docker rm -f lcbp3-backend lcbp3-frontend 2>/dev/null || true
docker rm -f backend frontend 2>/dev/null || true
# 4a. Start Backend ก่อน
echo "🟢 Starting Backend..."
@@ -57,7 +57,7 @@ jobs:
# 4b. รอ Backend healthy (ทุก 5 วิ สูงสุด 60 วิ)
echo "⏳ Waiting for Backend health check..."
for i in $(seq 1 12); do
if docker inspect --format='{{.State.Health.Status}}' lcbp3-backend 2>/dev/null | grep -q healthy; then
if docker inspect --format='{{.State.Health.Status}}' backend 2>/dev/null | grep -q healthy; then
echo "✅ Backend is healthy!"
break
fi