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:
Danila Khodjaef
2026-07-08 14:54:56 +03:00
co-authored by Cursor
parent 313666a4ab
commit 21e3e41e48
20 changed files with 839 additions and 86 deletions
+17 -1
View File
@@ -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),
});
});