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
+13 -1
View File
@@ -14,6 +14,7 @@ const {
loadDevPgConfig,
loadProdPgConfig,
} = require('./db-env');
const { printCliResult } = require('./lib/cli-result');
const { Client } = pg;
@@ -185,9 +186,20 @@ async function main() {
await client.end();
console.log(`Restore complete: ${restored} statements into "${dbName}".`);
printCliResult({
script: 'restore-db-data',
ok: true,
summary: `Restore complete into "${dbName}".`,
details: [`Statements restored: ${restored}`],
});
}
main().catch((error) => {
console.error(error);
process.exit(1);
printCliResult({
script: 'restore-db-data',
ok: false,
summary: error.message || String(error),
});
});