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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user