chore: 사내 Node 샘플 scaffold (new-project 템플릿)
podman 로컬개발 + Coolify(Dockerfile) 배포용 베이스. - Express 서버: /healthz, /db, /s3 연결 확인 - src/config.js 단일 진입점 → src/db.js(pg), src/s3.js(MinIO) - scripts/check-db.js, check-minio.js 연결 점검 - Dockerfile / compose.yaml / .dockerignore, 비밀값은 env 파일(gitignore)에서만 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
10
scripts/check-minio.js
Normal file
10
scripts/check-minio.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// MinIO(S3) 연결 빠른 확인: `npm run minio:check`
|
||||
// 먼저 ~/.config 또는 .env 에서 S3_ACCESS_KEY_ID / S3_SECRET_ACCESS_KEY 를 채워야 함.
|
||||
import { pingS3 } from "../src/s3.js";
|
||||
|
||||
try {
|
||||
console.log("S3 OK:", await pingS3());
|
||||
} catch (e) {
|
||||
console.error("S3 FAIL:", e.message);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user