Skip to main content

local-dev

Local development environment setup and commands. Use when helping with dev server, Docker, or local testing.

소스 정보

저장소
comet-ml/opik
최근 소스 활동
2026년 7월 13일 15:02
감지된 SKILL.md 언어
영어
스타
22,503
포크
1,846

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
local-dev
description
Local development environment setup and commands. Use when helping with dev server, Docker, or local testing.
# Local Development ## Quick Start ```bash ./scripts/dev-runner.sh --restart # First time / full rebuild ./scripts/dev-runner.sh --start # Daily start (no rebuild) ./scripts/dev-runner.sh --stop # Stop everything ./scripts/dev-runner.sh --verify # Check status ``` ## Modes | Mode | Command | Frontend | Use When | |------|---------|----------|----------| | Standard | `--restart` | localhost:5174 | Frontend work, full-stack | | BE-only | `--be-only-restart` | localhost:5173 | Backend-focused, faster rebuilds | | Platform (EM) | `PLATFORM_ENABLED=true ./scripts/dev-runner.sh --restart` | localhost:9100 | Opik-team only: run Opik connected to the Comet Platform | ### Platform (EM) mode — Opik-team only `PLATFORM_ENABLED=true` runs the Comet EM/Platform stack (`comet-backend` + `comet-react`, auto-detected sibling checkouts) alongside Opik behind a single-origin nginx proxy, with Opik in **comet mode** authenticating/resolving workspaces via comet-backend. Off by default — Standard/BE-only dev is unaffected. comet-backend builds under a detected JDK 17/21; Opik still uses JDK 25. ```bash PLATFORM_ENABLED=true ./scripts/dev-runner.sh --restart # then also --start/--stop/--verify # Integrated UI: http://localhost:9100 (comet-react / Platform) # http://localhost:9100/opik (Opik, comet mode) ``` Env vars (`COMET_BACKEND_PATH`, `COMET_REACT_PATH`, `PLATFORM_JAVA_HOME`, `PLATFORM_*_PORT`) and `--platform-build` are documented in `./scripts/dev-runner.sh --help`. ## URLs - **Frontend**: localhost:5174 (standard) / localhost:5173 (BE-only) - **Backend API**: localhost:8080 - **Health**: http://localhost:8080/health-check?name=all ## Build Commands ```bash ./scripts/dev-runner.sh --build-be # Backend only ./scripts/dev-runner.sh --build-fe # Frontend only ./scripts/dev-runner.sh --lint-be # Spotless ./scripts/dev-runner.sh --lint-fe # ESLint ./scripts/dev-runner.sh --migrate # DB migrations ``` ## Logs ```bash tail -f /tmp/opik-backend.log # Backend tail -f /tmp/opik-frontend.log # Frontend (standard) docker logs -f opik-frontend-1 # Frontend (BE-only) ``` ## SDK Config ```bash export OPIK_URL_OVERRIDE='http://localhost:8080' export OPIK_WORKSPACE='default' ``` ## Troubleshooting **Won't start:** ```bash ./scripts/dev-runner.sh --verify lsof -i :8080 # Port conflict? ./scripts/dev-runner.sh --stop && ./scripts/dev-runner.sh --restart ``` **Build fails:** ```bash cd apps/opik-backend && mvn clean install -DskipTests cd apps/opik-frontend && rm -rf node_modules && npm install ``` **Database issues:** ```bash ./scripts/dev-runner.sh --stop ./opik.sh --clean # WARNING: deletes data ./scripts/dev-runner.sh --restart ```
GitHub에서 보기