name: 启动HTTP注册表 description: 启动本地HTTP注册表服务器用于开发。当测试需要Abacus工作私有覆盖如RPC URLS的基础设施脚本或命令时使用。
启动HTTP注册表服务器
启动http-registry服务器在后台。
指令:
- 首先,找到monorepo根目录(工作目录可能已漂移):
git rev-parse --show-toplevel - 使用
run_in_background: true运行命令,并前缀cd到monorepo根目录:cd <MONOREPO_ROOT> && pnpm -C typescript/infra start:http-registry - 启动后,向用户报告任务/shell ID
- 提醒用户他们可以稍后使用
KillShell通过该ID停止它 - 注意注册表运行的URL,将是
http://localhost:<端口>,其中端口可以在日志中找到。
示例输出:
已启动http-registry服务器在后台(shell ID:
shell_abc123)。 要稍后停止它,我可以使用KillShell或者你可以运行/stop-http-registry。