Skip to content

Commit

Permalink
🎨 #4567
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 5, 2023
1 parent 3c2ae56 commit cdc8f41
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ const initKernel = (workspace, lang) => {
resolve(false)
return
}
// TODO
if (!isDevEnv) {
if (isDevEnv) {
writeLog('got kernel port [' + kernelPort + ']')
} else {
const getAvailablePort = () => {
Expand All @@ -412,9 +411,9 @@ const initKernel = (workspace, lang) => {
return
}
const cmds = ['--port', kernelPort, '--wd', appDir]
// TODO if (isDevEnv) {
// cmds.push('--mode', 'dev')
// }
if (isDevEnv) {
cmds.push('--mode', 'dev')
}
if (workspace) {
cmds.push('--workspace', workspace)
cmds.push('--lang', lang)
Expand All @@ -423,8 +422,7 @@ const initKernel = (workspace, lang) => {
' ')}]`
writeLog(cmd)
let kernelProcessPid = ''
// TODO
if (isDevEnv) {
if (!isDevEnv) {
const cp = require('child_process')
const kernelProcess = cp.spawn(kernelPath,
cmds, {
Expand Down

0 comments on commit cdc8f41

Please sign in to comment.