chore: Node(ESM) 앱 스캐폴드 — Express + Postgres/MinIO 연결, podman/Coolify 설정
new-project 템플릿 기반. /healthz /db /s3 연결 확인 엔드포인트, src/config.js 경유 외부연결, Dockerfile/compose(podman), CLAUDE.md 규약 포함. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
11
scripts/check-db.js
Normal file
11
scripts/check-db.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// DB 연결 빠른 확인: `npm run db:check`
|
||||
import { pingDb, pool } from "../src/db.js";
|
||||
|
||||
try {
|
||||
console.log("DB OK:", await pingDb());
|
||||
} catch (e) {
|
||||
console.error("DB FAIL:", e.message);
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
await pool.end();
|
||||
}
|
||||
Reference in New Issue
Block a user