fix: use gateway run instead of dashboard for persistent service

dashboard only opens browser and exits immediately; gateway run keeps
the service running so the web UI can actually connect.
This commit is contained in:
dongsheng123132
2026-03-09 18:08:55 +08:00
parent d35cf65727
commit 56dcf4c811
2 changed files with 14 additions and 4 deletions

View File

@@ -132,7 +132,11 @@ if [ ! -f "$PORTABLE_CONFIG_PATH" ]; then
echo " 已跳过首次配置。"
fi
else
"$NODE_BIN" openclaw.mjs dashboard
echo -e " ${GREEN}正在启动网关服务...${NC}"
echo " 启动后会自动打开浏览器控制台。"
echo " 此窗口不要关闭,关闭后服务会停止。"
echo ""
"$NODE_BIN" openclaw.mjs gateway run
fi
echo ""