瀏覽代碼

Merge branch 'master' of http://git.bbh/chess/elxr into master

pull/3/head
Pradeep Bhaskaran 4 年之前
父節點
當前提交
9b271b1e3c
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7
    2
      index.js

+ 7
- 2
index.js 查看文件

@@ -715,7 +715,8 @@ var __runcmd = function(label){
env.DEBUG = 'loopback:connector:' + dbForLabel(label)
var cmd = env.NODE_ENV === 'development' ? 'nodemon' : 'node';
// cmd = 'node'
var childPromise = nodeShellExec(cmd, ['--inspect=9228', 'elixir/server.js'], {
cmd = [cmd, ['--inspect=9228', 'elixir/server.js']]
var childPromise = nodeShellExec(...cmd, {
// inherit : true,
shell: true,
detached: true,
@@ -726,6 +727,7 @@ var __runcmd = function(label){

var child = childPromise.process;
if (typeof child.pid !== 'undefined') {
console.log(`started Elixir Server PID(${child.pid}) : NODE_ENV=${process.NODE_ENV} ${cmd}`);
fs.writeFileSync('.elixir-server.elixir.server.pid', child.pid, {
encoding: 'utf8'
})
@@ -745,7 +747,9 @@ var __runcmd = function(label){
// cwd : 'client/',
// env: env
// })
var childPromise = nodeShellExec('ember', ['s'], {
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,
@@ -759,6 +763,7 @@ var __runcmd = function(label){

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'
})

Loading…
取消
儲存