Add one-command dev-to-prod release with clear SUCCESS/FAILED banners.
Introduce devtoprod:release orchestrator, config file, CLI result footers on deploy scripts, auto-thumb regeneration on curator fixes, and updated deploy documentation. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
313666a4ab
commit
21e3e41e48
@@ -9,6 +9,7 @@ const {
|
||||
loadProdPgConfig,
|
||||
rootDir,
|
||||
} = require('./db-env');
|
||||
const { printCliResult } = require('./lib/cli-result');
|
||||
|
||||
const { Client } = pg;
|
||||
|
||||
@@ -124,12 +125,27 @@ async function main() {
|
||||
{ stdio: 'inherit' },
|
||||
);
|
||||
|
||||
const relTxtPath = path.relative(rootDir, txtPath).replace(/\\/g, '/');
|
||||
console.log(`Backup written: ${txtPath}`);
|
||||
console.log(`Archive written: ${zipPath}`);
|
||||
console.log(`Tables: ${tablesRes.rowCount}, rows: ${totalRows}`);
|
||||
|
||||
printCliResult({
|
||||
script: 'backup-db-data',
|
||||
ok: true,
|
||||
summary: `Backup complete for "${dbName}".`,
|
||||
details: [
|
||||
`File: ${relTxtPath}`,
|
||||
`Tables: ${tablesRes.rowCount}, rows: ${totalRows}`,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
printCliResult({
|
||||
script: 'backup-db-data',
|
||||
ok: false,
|
||||
summary: error.message || String(error),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user