🎨 开发环境(dev 模式)不再强制使用 6806 端口
This commit is contained in:
parent
f8c92bf62f
commit
a7de45d70d
1 changed files with 2 additions and 3 deletions
|
@ -382,9 +382,8 @@ const initKernel = (workspace, lang) => {
|
|||
resolve(false)
|
||||
return
|
||||
}
|
||||
if (isDevEnv && workspaces.length === 0) {
|
||||
writeLog('got kernel port [' + kernelPort + ']')
|
||||
} else {
|
||||
|
||||
if (!isDevEnv || workspaces.length > 0) {
|
||||
const getAvailablePort = () => {
|
||||
// https://gist.github.com/mikeal/1840641
|
||||
return new Promise((portResolve, portReject) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue