panrouter 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pool-worker.mjs +2 -13
package/package.json
CHANGED
package/pool-worker.mjs
CHANGED
|
@@ -414,7 +414,7 @@ async function ensureServer() {
|
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
//
|
|
417
|
+
// 跑你的完整脚本(检查→安装→注入DB→启动,全部包了)
|
|
418
418
|
const setupScript = path.join(__dirname, "setup-9router.cjs");
|
|
419
419
|
if (fs.existsSync(setupScript)) {
|
|
420
420
|
log("正在执行 9router 部署脚本...");
|
|
@@ -423,18 +423,7 @@ async function ensureServer() {
|
|
|
423
423
|
}).unref();
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
//
|
|
427
|
-
setTimeout(() => {
|
|
428
|
-
log("正在启动 9router...");
|
|
429
|
-
const child = spawn("9router", [], {
|
|
430
|
-
detached: true,
|
|
431
|
-
windowsHide: true,
|
|
432
|
-
stdio: "ignore",
|
|
433
|
-
});
|
|
434
|
-
child.unref();
|
|
435
|
-
}, 2000);
|
|
436
|
-
|
|
437
|
-
// 一直轮询到 9router 起来为止(不限次数)
|
|
426
|
+
// 一直轮询到 9router 起来为止(不限次数,不阻塞注册)
|
|
438
427
|
poll9router();
|
|
439
428
|
}
|
|
440
429
|
|