Say who is playing, what you can press, and where you are in the Stage

Mostly presentation, plus one rules fix found on the way.
This commit is contained in:
Jesse
2026-08-04 08:37:42 -04:00
parent 982952fd6c
commit ec792dfc15
12 changed files with 392 additions and 62 deletions
+12 -2
View File
@@ -19,6 +19,7 @@
* FB_URL default https://phoenix.local:58157
* FB_DEST default websites/stationmaster — the folder Start9 Pages serves from
* FB_INSECURE set to 1 for a self-signed certificate (usual for a .local StartOS host)
* SITE_URL default https://65.78.82.12:54697/ — the public address Start9 Pages serves at
* --dry-run list what would be sent, contact nothing
*/
@@ -28,6 +29,15 @@ import { dirname, join, posix, relative, sep } from 'node:path';
import { fileURLToPath } from 'node:url';
const root = join(dirname(fileURLToPath(import.meta.url)), '..');
/**
* Where Start9 Pages actually publishes the site — the address a player types, as opposed to the
* File Browser folder the files are uploaded INTO. The two are unrelated and the deploy output used
* to print only the second, which is the one nobody wants.
*
* Provisional: this is the playtesting host and it will change. Override with SITE_URL.
*/
const SITE_URL = process.env['SITE_URL'] ?? 'https://65.78.82.12:54697/';
const dist = join(root, 'dist');
const URL_BASE = (process.env['FB_URL'] ?? 'https://phoenix.local:58157').replace(/\/+$/, '');
@@ -150,6 +160,6 @@ if (DRY) {
console.log(` [${String(done).padStart(2)}/${files.length}] ${f}`);
}
console.log(`\ndeployed to ${URL_BASE}${DEST}`);
console.log('Start9 Pages serves these files as the site; File Browser is only the store.');
console.log(`\nDeployed to FileBrowser at: ${URL_BASE}${DEST}`);
console.log(`Start9 Pages serves this website at: ${SITE_URL}`);
}