remove project home
This commit is contained in:
parent
ce35ebc40e
commit
7981ff0851
@ -2,6 +2,7 @@ const ws = require('nodejs-websocket')
|
|||||||
const { exec, spawn } = require('child_process')
|
const { exec, spawn } = require('child_process')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
|
var contextId = null
|
||||||
var clientConnection = null
|
var clientConnection = null
|
||||||
var debuggerConnection = null
|
var debuggerConnection = null
|
||||||
|
|
||||||
@ -14,7 +15,8 @@ const createServer = () => {
|
|||||||
debuggerConnection = connection
|
debuggerConnection = connection
|
||||||
|
|
||||||
clientConnection.sendText(JSON.stringify({
|
clientConnection.sendText(JSON.stringify({
|
||||||
cmd: 'SWITCH_TO_DEBUG'
|
cmd: 'SWITCH_TO_DEBUG',
|
||||||
|
contextId: contextId
|
||||||
}), function() {
|
}), function() {
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -29,8 +31,8 @@ const createServer = () => {
|
|||||||
case 'DEBUG':
|
case 'DEBUG':
|
||||||
clientConnection = connection
|
clientConnection = connection
|
||||||
|
|
||||||
let contextId = resultObject.data.contextId
|
contextId = resultObject.data.contextId
|
||||||
let projectHome = resultObject.data.projectHome
|
let projectHome = '.'
|
||||||
|
|
||||||
fs.writeFileSync(projectHome + '/build/context', contextId, 'utf8')
|
fs.writeFileSync(projectHome + '/build/context', contextId, 'utf8')
|
||||||
|
|
||||||
@ -44,7 +46,7 @@ const createServer = () => {
|
|||||||
console.log(`stdout: ${err}`)
|
console.log(`stdout: ${err}`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, 3000)
|
}, 1500)
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user