1.5 KiB
1.5 KiB
Colima Dev Flow
1. 原生开发
先在宿主机改代码并确认:
NODE_BIN=/opt/homebrew/opt/node@24/bin/nodeAIDER_BIN=/Users/john/Project/aider/aider.shOPENHANDS_BIN=/Users/john/.openhands/bin/studio-openhands
建议先过:
cd /Users/john/Project/Memind
curl -sS http://127.0.0.1:8081/api/status
2. 启动本机 Colima goosed
cd /Users/john/Project/tkmind_go
cp .env.colima.example .env.colima
bash scripts/colima-up.sh
curl -sk https://127.0.0.1:18006/status
必须看到:
ok
3. 用 Colima goosed 启动本机 H5
cd /Users/john/Project/Memind
cp .env.colima.example .env.colima
bash scripts/dev-colima.sh
检查:
curl -sS http://127.0.0.1:8081/api/status
4. 用 Colima goosed 启动本机管理端
cd /Users/john/Project/memind_adm
cp .env.colima.example .env.colima
bash scripts/local_restart_colima.sh
检查:
curl -sS http://127.0.0.1:8085/health
5. 发布前 smoke
至少确认:
https://127.0.0.1:18006/status返回okhttp://127.0.0.1:8081/api/status返回okhttp://127.0.0.1:8085/health返回{"ok":true,...}GOOSED_MCP_NODE_PATH是容器内路径GOOSED_MCP_SERVER_PATH是容器内路径AIDER_BIN、GOOSE_AIDER_BIN都是/Users/john/Project/aider/aider.shOPENHANDS_BIN、GOOSE_OPENHANDS_BIN都是/Users/john/.openhands/bin/studio-openhands
6. 停止 Colima goosed
cd /Users/john/Project/tkmind_go
bash scripts/colima-down.sh