From d3536342d4177102a99c4c1d744ada94be475ff8 Mon Sep 17 00:00:00 2001 From: DebuggingMax Date: Sun, 1 Mar 2026 15:40:23 +0000 Subject: [PATCH] fix(deploy): include devDependencies in npm ci and increase health check timeout - Change npm ci --silent to npm ci --include=dev to ensure vue-tsc and other devDependencies are installed (needed for build step) - Increase health check sleep from 5s to 20s to allow orchestrator sufficient startup time Fixes #359 --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 04ec40cb..e4257b80 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 2>&1 | tee -a "$LOG_FILE" # Ensure .env.production.local exists (base path override) if [ ! -f "$REPO_DIR/admin/.env.production.local" ]; then @@ -76,8 +76,8 @@ rsync -a --delete "$REPO_DIR/admin/dist/" /var/www/admin-ai-sekretar24/ log "Restarting orchestrator..." systemctl restart ai-secretary 2>&1 | tee -a "$LOG_FILE" -# Wait and verify -sleep 5 +# Wait and verify (20s to allow orchestrator full startup) +sleep 20 if curl -sf http://localhost:8002/health > /dev/null 2>&1; then log "=== Deploy completed successfully ===" else