| name | local-dev |
| description | Local development environment setup and commands. Use when helping with dev server, Docker, or local testing. |
Local Development
Quick Start
./scripts/dev-runner.sh --restart
./scripts/dev-runner.sh --start
./scripts/dev-runner.sh --stop
./scripts/dev-runner.sh --verify
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.
PLATFORM_ENABLED=true ./scripts/dev-runner.sh --restart
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
Build Commands
./scripts/dev-runner.sh --build-be
./scripts/dev-runner.sh --build-fe
./scripts/dev-runner.sh --lint-be
./scripts/dev-runner.sh --lint-fe
./scripts/dev-runner.sh --migrate
Logs
tail -f /tmp/opik-backend.log
tail -f /tmp/opik-frontend.log
docker logs -f opik-frontend-1
SDK Config
export OPIK_URL_OVERRIDE='http://localhost:8080'
export OPIK_WORKSPACE='default'
Troubleshooting
Won't start:
./scripts/dev-runner.sh --verify
lsof -i :8080
./scripts/dev-runner.sh --stop && ./scripts/dev-runner.sh --restart
Build fails:
cd apps/opik-backend && mvn clean install -DskipTests
cd apps/opik-frontend && rm -rf node_modules && npm install
Database issues:
./scripts/dev-runner.sh --stop
./opik.sh --clean
./scripts/dev-runner.sh --restart