Browse Source

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

production
chess 3 years ago
parent
commit
93d3f6a231
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      index.js

+ 2
- 1
index.js View File

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…
Cancel
Save