From 06ba3d35e7d65dce82575bd3f423b956d8fe7774 Mon Sep 17 00:00:00 2001 From: michilis Date: Tue, 25 Aug 2026 06:46:23 +0200 Subject: [PATCH] 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 --- web/server.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/server.mjs b/web/server.mjs index 5726db4..198776e 100644 --- a/web/server.mjs +++ b/web/server.mjs @@ -351,7 +351,10 @@ export function createServer() { async function checkRoot() { const index = path.join(ROOT, 'index.html'); 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); } -- 2.54.0