GhiVideo 소스 복제 — v4 작업 시작 기준

기존 GhiVideo 저장소 HEAD의 트래킹 소스 362개 파일을 복제.
(node_modules·storage·빌드 산출물·대용량 미디어는 .gitignore 규칙대로 제외)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 14:32:51 +09:00
co-authored by Claude Fable 5
commit d38b842e8d
362 changed files with 46358 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
module.exports = {
apps: [
{
name: "ghiVideo",
// cwd = 이 설정 파일이 있는 위치(프로젝트 루트)를 작업 디렉토리로 고정.
// 이 한 곳만 앵커로 두고, 아래 경로는 전부 cwd 기준 상대경로로 해석된다.
cwd: __dirname,
// script: cwd 기준 상대경로 (npm run build 후 생성)
script: "server/dist/server/src/app.js",
// PATH 의 node 사용 — pm2 start 전에 nvm 으로 Node 20 이 활성화돼 있어야 함
interpreter: "node",
env: {
PORT: 55000,
// 서버 config.ts 가 path.resolve(cwd 기준)로 해석 → 상대경로 OK
VIDEOS_DIR: "samplevideo",
HLS_DIR: "storage/hls",
FRAMES_DIR: "storage/frames",
THUMBNAILS_DIR: "storage/thumbnails",
DB_PATH: "storage/annotations.db",
// 절대경로 대신 PATH 에서 탐색 (apt 설치 시 /usr/bin 에 있고 PATH 포함됨)
FFMPEG_PATH: "ffmpeg",
FFPROBE_PATH: "ffprobe",
GEO_DATA_DIR: "samplevideo",
CENTER_CSV_PATH: "pythonsource/input/center.csv",
},
},
],
};