|
|
@@ -1593,28 +1593,29 @@ var op = { |
|
|
|
// cwd : 'client/', |
|
|
|
// env: env |
|
|
|
// }) |
|
|
|
// console.log('Starting Elixir Client Host.'); |
|
|
|
// var cmd = ['ember', ['s']] |
|
|
|
// var childPromise = nodeShellExec(...cmd, { |
|
|
|
// // var childPromise = nodeShellExec('node', ['--inspect=9227', './node_modules/.bin/ember', 's'], { |
|
|
|
// // PB : TODO -- ember debugging. |
|
|
|
// // inherit : true, |
|
|
|
// shell: true, |
|
|
|
// detached: true, |
|
|
|
// stdio: 'ignore', |
|
|
|
// cwd: instanceroot + '/' + 'client' |
|
|
|
// , env: env |
|
|
|
// }) |
|
|
|
// // .catch(e=>console.error(e)) |
|
|
|
console.log('Starting Elixir Client Host.'); |
|
|
|
var cmd = ['ember', ['s']] |
|
|
|
var childPromise = nodeShellExec(...cmd, { |
|
|
|
// var childPromise = nodeShellExec('node', ['--inspect=9227', './node_modules/.bin/ember', 's'], { |
|
|
|
// PB : TODO -- ember debugging. |
|
|
|
// inherit : true, |
|
|
|
shell: true, |
|
|
|
detached: true, |
|
|
|
stdio: 'ignore', |
|
|
|
cwd: instanceroot + '/' + 'client' |
|
|
|
, env: env |
|
|
|
}) |
|
|
|
// .catch(e=>console.error(e)) |
|
|
|
|
|
|
|
// child = childPromise.process; |
|
|
|
// if (typeof child.pid !== 'undefined') { |
|
|
|
// console.log(`started Elixir Client Host PID(${child.pid}) : NODE_ENV=${process.NODE_ENV} ${cmd}`); |
|
|
|
// fs.writeFileSync('.client.server.pid', child.pid, { |
|
|
|
// encoding: 'utf8' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
child = childPromise.process; |
|
|
|
if (typeof child.pid !== 'undefined') { |
|
|
|
console.log(`started Elixir Client Host PID(${child.pid}) : NODE_ENV=${process.NODE_ENV} ${cmd}`); |
|
|
|
fs.writeFileSync('.client.server.pid', child.pid, { |
|
|
|
encoding: 'utf8' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
, 'stop': (label) => { |
|
|
|
const kill = require('tree-kill'); |