Compare commits

..
2 Commits
Author SHA1 Message Date
Michilis 987d7b2d84 Merge pull request 'Clarify the empty-WEB_ROOT hint to point at cashumints-web.' (#7) from dev into main
Reviewed-on: #7
2026-08-25 04:46:47 +00:00
michilisandCursor 06ba3d35e7 Clarify the empty-WEB_ROOT hint to point at cashumints-web.
A bare pnpm build only fills dist; production needs the publish unit.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 06:46:23 +02:00
+4 -1
View File
@@ -351,7 +351,10 @@ export function createServer() {
async function checkRoot() { async function checkRoot() {
const index = path.join(ROOT, 'index.html'); const index = path.join(ROOT, 'index.html');
if (await statFile(index)) return; if (await statFile(index)) return;
log('error', 'web root has no index.html', { root: ROOT, hint: 'run pnpm build, then publish it to WEB_ROOT' }); log('error', 'web root has no index.html', {
root: ROOT,
hint: 'a manual `pnpm build` only writes web/dist; `systemctl start cashumints-web` builds and publishes to WEB_ROOT',
});
process.exit(1); process.exit(1);
} }