Fix deploy health check for /mstcontroller and cut ready-loop waste.
Deploy edu.mstaut.ir / deploy (push) Successful in 5m56s
Deploy edu.mstaut.ir / deploy (push) Successful in 5m56s
Admin login moved off /admin; old path caused 404 spam for up to two minutes. Slim smoke checks, shorter retries, quieter migrate logs, and npm ci without audit in the image build. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
69bdaf0113
commit
c97498a2ae
4 files changed
+48
-20
No files matched your search
+5
-5
@@ -74,16 +74,16 @@ async function main() {
|
||||
}
|
||||
|
||||
const tables = await client.query(`
|
||||
SELECT table_name
|
||||
SELECT count(*)::int AS n
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'public' AND table_type = 'BASE TABLE'
|
||||
ORDER BY table_name
|
||||
`);
|
||||
|
||||
console.log(`applied_count: ${appliedCount}`);
|
||||
console.log(`skipped (already applied): ${skipped.length ? skipped.join(", ") : "none"}`);
|
||||
console.log(`tables_count: ${tables.rows.length}`);
|
||||
console.log(JSON.stringify(tables.rows.map((r) => r.table_name)));
|
||||
if (skipped.length) {
|
||||
console.log(`skipped_count: ${skipped.length}`);
|
||||
}
|
||||
console.log(`tables_count: ${tables.rows[0].n}`);
|
||||
} finally {
|
||||
await client.end().catch(() => {});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user