From 4fc68971bafc233ba83b3ecfec69490eb3c73370 Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Fri, 26 Dec 2025 04:38:15 -0800 Subject: [PATCH] fix(deploy): correct dashboard deployment path for NestJS ServeStatic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NestJS ServeStatic serves from apps/registry/dist/apps/dashboard/dist/ (relative to __dirname in the built main.js), not apps/dashboard/dist/. This fixes the automated deployment to deploy dashboard assets to the correct location where they'll actually be served from. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- infrastructure/scripts/deploy-service-registry.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/infrastructure/scripts/deploy-service-registry.sh b/infrastructure/scripts/deploy-service-registry.sh index 7729cf346..8e91a0f8a 100755 --- a/infrastructure/scripts/deploy-service-registry.sh +++ b/infrastructure/scripts/deploy-service-registry.sh @@ -141,16 +141,20 @@ build_registry() { deploy_dashboard() { log_step "Deploying dashboard..." + # NestJS ServeStatic serves from apps/registry/dist/apps/dashboard/dist/ + # (relative to __dirname in the built main.js) + local DASHBOARD_DEST="${DEPLOY_PATH_VPS}/apps/registry/dist/apps/dashboard/dist" + # Create directory if needed - $SSH_CMD "mkdir -p ${DEPLOY_PATH_VPS}/apps/dashboard/dist" + $SSH_CMD "mkdir -p ${DASHBOARD_DEST}" # Rsync dashboard dist rsync -avz --delete \ -e "ssh -i ${SSH_KEY}" \ "${APP_SOURCE}/apps/dashboard/dist/" \ - "${VPS_USER}@${VPS_HOST}:${DEPLOY_PATH_VPS}/apps/dashboard/dist/" + "${VPS_USER}@${VPS_HOST}:${DASHBOARD_DEST}/" - log_success "Dashboard deployed" + log_success "Dashboard deployed to ${DASHBOARD_DEST}" } deploy_registry() {