You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d796ee4
Browse filesBrowse the repository at this point in the historyBrowse files
Phase 2 hardening of the in-server dashboard.
- Run compiled JS: tsconfig outDir=dist + 'build'/'start' scripts; dash-node service
now runs 'node dist/server.js' (was 'npx ts-node server.ts') with a respawn supervisor
(auto-restart on crash, PID-tracked so stop ends the loop cleanly) and a 'health' probe
(GET /api/kiwix/jobs). Bootstrap runs 'yarn build' after install.
- Resolve views/public via process.cwd() (the service cd's into /library/dashboard) so
paths hold once __dirname is .../dist.
- Bind the server to 127.0.0.1: nginx already proxies from loopback, so :4000 no longer
needs to listen on the device's network interfaces (closes network-reachable :4000).
- tools/dev-push-dashboard.sh: push static/dashboard into an installed rootfs + rebuild +
restart, for iterating without the ~2h rootfs rebuild (tar excludes node_modules/dist).
Compile validated (tsc emits dist cleanly). Runtime under plain node (native better-sqlite3),
the supervisor stop/health shell paths, and the provisioning 'yarn build' need on-device
verification in the rebuild.
0 commit comments