client: fix script

pull/44/head
fantasticit 2022-05-18 21:36:15 +08:00
parent d007d7d2e1
commit dac7667714
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ const cli = require('next/dist/cli/next-start');
const port = (config.client && config.client.port) || 5002; const port = (config.client && config.client.port) || 5002;
try { try {
cli.nextDev(['-p', port]); cli.nextStart(['-p', port]);
console.log(`[think] 客户端已启动,端口:${port}`); console.log(`[think] 客户端已启动,端口:${port}`);
} catch (err) { } catch (err) {
console.log(`[think] 客户端启动失败!${err.message || err}`); console.log(`[think] 客户端启动失败!${err.message || err}`);