From 566ed6b742e7db046a6acd55e51f0259c5eff158 Mon Sep 17 00:00:00 2001 From: DebuggingMax Date: Mon, 23 Feb 2026 06:34:50 +0000 Subject: [PATCH] fix(deploy): install devDependencies and increase health check timeout - Add --include=dev to npm ci to ensure vue-tsc and other build tools are installed - Increase health check sleep from 5 to 20 seconds for slower startups Fixes #359 --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 04ec40cb..9993aab8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -48,7 +48,7 @@ log "Installing bridge dependencies..." # Install/update npm deps log "Installing npm dependencies..." cd "$REPO_DIR/admin" -npm ci --silent 2>&1 | tee -a "$LOG_FILE" +npm ci --include=dev --silent 2>&1 | tee -a "$LOG_FILE" # Ensure .env.production.local exists (base path override) if [ ! -f "$REPO_DIR/admin/.env.production.local" ]; then @@ -77,7 +77,7 @@ log "Restarting orchestrator..." systemctl restart ai-secretary 2>&1 | tee -a "$LOG_FILE" # Wait and verify -sleep 5 +sleep 20 if curl -sf http://localhost:8002/health > /dev/null 2>&1; then log "=== Deploy completed successfully ===" else