fix(deploy): DB IP를 121.156.99.3으로 갱신 — 운영 .env.production 자동 반영
Deploy momo-erp / deploy (push) Failing after 11m45s
Deploy momo-erp / deploy (push) Failing after 11m45s
- .gitea/workflows/deploy.yml: heredoc DATABASE_URL을 새 DB IP로 - CICD_SETUP.md / e2e 스크립트: 문서·테스트의 DB URL 일괄 갱신 - 이전엔 git push 후에도 deploy.yml의 hardcoded 구IP가 .env.production을 덮어써서 운영이 옛 DB로 부팅됨 → 본 커밋으로 자동배포 시 신 DB 적용 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ import { fileURLToPath } from "node:url";
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const BASE = process.env.E2E_BASE || "http://localhost:3000";
|
||||
const DB_URL = "postgresql://momo_app:qlalfqjsgh11@183.99.177.40:5432/distribution";
|
||||
const DB_URL = "postgresql://momo_app:qlalfqjsgh11@121.156.99.3:5432/distribution";
|
||||
const ADMIN_EMAIL = "admin@momo.com";
|
||||
const ADMIN_PASS = "admin1234";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import pg from "pg";
|
||||
|
||||
const BASE = process.env.E2E_BASE || "https://momo.junggomoa.com";
|
||||
const DB_URL = "postgresql://momo_app:qlalfqjsgh11@183.99.177.40:5432/distribution";
|
||||
const DB_URL = "postgresql://momo_app:qlalfqjsgh11@121.156.99.3:5432/distribution";
|
||||
|
||||
const log = (...a) => console.log("[e2e]", ...a);
|
||||
const fail = (m) => { console.error("[e2e] ✖", m); process.exit(1); };
|
||||
|
||||
Reference in New Issue
Block a user