update
This commit is contained in:
@@ -143,7 +143,7 @@ program
|
||||
} else if (options.start) {
|
||||
console.log('启动服务', chalk.green(assistantConfig.configDir));
|
||||
const config = assistantConfig.getCacheAssistantConfig();
|
||||
const listenPort = options.port || config?.server?.port;
|
||||
const listenPort = parseInt(options.port || config?.server?.port);
|
||||
const listenPath = config?.server?.path || '::';
|
||||
const server = await runServer(listenPort, listenPath);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user