update change cli
This commit is contained in:
@@ -79,8 +79,9 @@ program
|
||||
console.log('以守护进程方式运行');
|
||||
} else if (options.start) {
|
||||
console.log('启动服务', chalk.green(assistantConfig.configDir));
|
||||
const listenPort = options.port || assistantConfig.config?.server?.port;
|
||||
const listenPath = assistantConfig.config?.server?.path || '127.0.0.1';
|
||||
const config = assistantConfig.getCacheAssistantConfig();
|
||||
const listenPort = options.port || config?.server?.port;
|
||||
const listenPath = config?.server?.path || '127.0.0.1';
|
||||
const server = await runServer(listenPort, listenPath);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user