瀏覽代碼

Added elxr model to link loopback json models with chess-server-lib

production
chess 3 年之前
父節點
當前提交
93d3f6a231
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      index.js

+ 2
- 1
index.js 查看文件

var p = nodeShellExec('mklink', [ `${processedArgs._[2]}.json` var p = nodeShellExec('mklink', [ `${processedArgs._[2]}.json`
, `..\\..\\node_modules\\chess-server-lib\\common\\models\\${processedArgs._[2]}.json`], { , `..\\..\\node_modules\\chess-server-lib\\common\\models\\${processedArgs._[2]}.json`], {
inherit: true, shell: true inherit: true, shell: true
, cwd : instanceroot + `/${selectedinstance.instanceName}-server/${selectedinstance}/models`
, cwd : instanceroot + `/${selectedinstance.instanceName}-server/${selectedinstance.instanceName}/models`
, title: `mklink ${processedArgs._[2]}.json ..\\..\\node_modules\\chess-server-lib\\common\\models\\${processedArgs._[2]}.json`
, env: process.env , env: process.env
}).catch((e) => { console.error(e) }) }).catch((e) => { console.error(e) })
return p; return p;

Loading…
取消
儲存