Deploy through the predeploy gate instead of by hand.

`npm run deploy` now runs the gate (typecheck, unit suite, render check) before
anything is copied, then rsyncs the source, rebuilds and restarts the service on
the target from LUMINARY_DEPLOY_* variables, and fails if the server is not
serving the same bundle hashes as the reviewed local build. npm runs a script
named predeploy before deploy on its own, so the gate runs once; invoked as
`node scripts/deploy.mjs` the script gates itself. Both scripts exit through
process.exitCode, because process.exit() truncated the failure messages when
they were piped.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 15:20:18 +00:00
parent 4b17ca00db
commit 24deb8e69b
4 changed files with 222 additions and 21 deletions
+1
View File
@@ -15,6 +15,7 @@
"test": "vitest run",
"check:render": "node scripts/render-check.mjs",
"predeploy": "node scripts/predeploy.mjs",
"deploy": "node scripts/deploy.mjs",
"build:lens-db": "node scripts/build-lens-db.mjs"
},
"dependencies": {