将app的配置,保存到running.json中。

pull/295/head
王良 2024-04-13 21:11:34 +08:00
parent 355816fee1
commit 6dd761e584
1 changed files with 5 additions and 1 deletions

View File

@ -65,10 +65,14 @@ const serverApi = {
} }
serverConfig.plugin = allConfig.plugin serverConfig.plugin = allConfig.plugin
if (allConfig.proxy && allConfig.proxy.enabled) { if (allConfig.proxy) {
serverConfig.proxy = allConfig.proxy serverConfig.proxy = allConfig.proxy
} }
if (allConfig.app) {
serverConfig.app = allConfig.app
}
// fireStatus('ing') // 启动中 // fireStatus('ing') // 启动中
const basePath = serverConfig.setting.userBasePath const basePath = serverConfig.setting.userBasePath
const runningConfigPath = path.join(basePath, '/running.json') const runningConfigPath = path.join(basePath, '/running.json')