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
@@ -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),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user