diff --git a/server/accord.lua b/server/accord.lua index e45b05f2..81da5ebc 100644 --- a/server/accord.lua +++ b/server/accord.lua @@ -1,6 +1,8 @@ #!./quanta import("kernel.lua") +require("socket.core") +require("LuaPanda").start("127.0.0.1", 8820) quanta.startup(function() import("kernel/protobuf_mgr.lua") import("robot/node_factory.lua") diff --git a/server/robot/accord_mgr.lua b/server/robot/accord_mgr.lua index 0ae53739..6f0260ed 100644 --- a/server/robot/accord_mgr.lua +++ b/server/robot/accord_mgr.lua @@ -28,6 +28,7 @@ prop:reader("accord_list", {}) -- 协议列表(添加的数据) prop:reader("case_group", {}) -- 用例分组 prop:reader("load_db_status", false) prop:reader("src_map", {}) -- 资源映射 +prop:reader("srvlist_api", environ.get("QUANTA_SRVLIST_API")) -- 服务器列表api function AccordMgr:__init() -- 创建HTTP服务器