chore(env): Cloud Agent 개발 환경 설정 추가 - #62
Draft
ghandhitechnology wants to merge 1 commit into
Draft
Conversation
- .cursor/environment.json: install/start 단계와 web/realtime terminals 정의 - .cursor/install.sh: 시스템 패키지(PostgreSQL/Redis/MinIO), 의존성, Prisma client 생성, Web standalone 프로덕션 빌드, realtime 빌드 (idempotent) - .cursor/start.sh: PostgreSQL/Redis/MinIO 기동, role/db/bucket 보장, prisma migrate deploy (idempotent) dev 서버는 앱 CSP가 unsafe-eval을 허용하지 않아 HMR이 막히므로 운영과 동일한 standalone 프로덕션 빌드를 실행합니다. Co-authored-by: Andy <heemang12bo@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
Cloud Agent가 인텍트 저장소를 바로 개발·구동할 수 있도록
.cursor/개발 환경 설정을 추가합니다. Docker가 없는 Cloud Agent VM 환경에 맞춰, AGENTS.md의 "소스 직접 실행" 경로를 재현합니다(PostgreSQL·Redis·MinIO를 VM에 네이티브로 기동).변경 사항
.cursor/environment.json—install/start단계와web·realtimeterminals 정의.cursor/install.sh(idempotent)python3-venv(verify의 riro-bridge 검증용), MinIO 서버/클라이언트 바이너리corepack yarn활성화,client·server/chat의존성 설치, Prisma client 생성client/.env생성(없을 때만, 무작위 비밀값 — 운영 값 미사용)static/public복사, realtimetsc빌드.cursor/start.sh(idempotent)igwakrole·db·igwak-uploads버킷 보장prisma migrate deploy설계 노트
next.config.js)가script-src에unsafe-eval을 허용하지 않아next dev의 HMR이 브라우저에서 차단되어 UI가 로딩 화면에서 멈춥니다.docker-compose와 동일하게 standalone 프로덕션 빌드(node .next/standalone/server.js)를 실행해 CSP를 유지하면서 UI가 정상 렌더링됩니다. 앱 코드/CSP는 수정하지 않았습니다..cursor/외 저장소 코드 변경은 없습니다.검증
bash scripts/verify.sh전체 게이트 통과(Prisma validate → migration → lint → typegen → typecheck → 테스트 → Next 프로덕션 빌드 → realtime 빌드 → moderation 구문 → riro-bridge venv/pip check/unittest).install.sh·start.sh재실행 시 idempotent 동작 확인./api/health={"status":"ok"}, realtime/health={"ok":true,...,"redis":"ready"}.