Skip to content

Commit 6621d86

Browse files
Fix dashboard deployment: include node_modules and startup command
The Astro SSR build needs node_modules at runtime. Copy package.json into dist/ and install production deps before deploying. Set startup command to node server/entry.mjs for Azure Linux Web App. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a2f715c commit 6621d86

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish-dashboard.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ jobs:
4040
WEBAUTHN_RP_ID: ${{ secrets.WEBAUTHN_RP_ID }}
4141
WEBAUTHN_ORIGIN: ${{ secrets.WEBAUTHN_ORIGIN }}
4242

43+
- name: Prepare deployment package
44+
working-directory: ./dashboard
45+
run: |
46+
cp package.json dist/
47+
cp package-lock.json dist/
48+
cd dist && npm ci --omit=dev
49+
4350
- name: Deploy to Azure Web App
4451
uses: azure/webapps-deploy@v3
4552
with:
4653
app-name: 'TgitDashboardAsApp'
4754
publish-profile: ${{ secrets.AZURE_DASHBOARD_PUBLISH_PROFILE }}
55+
startup-command: 'node server/entry.mjs'
4856
package: ./dashboard/dist

0 commit comments

Comments
 (0)