Merge pull request #455 from xgblack/fix-docker-ui

fix ui: 修复Docker中运行通过UI重启报错的问题
This commit is contained in:
musi
2025-08-06 20:17:07 +08:00
committed by GitHub

View File

@@ -47,7 +47,7 @@ export const createServer = (config: any): Server => {
// Restart the service after a short delay to allow response to be sent
setTimeout(() => {
const { spawn } = require("child_process");
spawn("ccr", ["restart"], { detached: true, stdio: "ignore" });
spawn(process.execPath, [process.argv[1], "restart"], { detached: true, stdio: "ignore" });
}, 1000);
});