Ver código fonte

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

pull/4/head
chess 3 anos atrás
pai
commit
93d3f6a231
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      index.js

+ 2
- 1
index.js Ver arquivo

@@ -947,7 +947,8 @@ var op = {
var p = nodeShellExec('mklink', [ `${processedArgs._[2]}.json`
, `..\\..\\node_modules\\chess-server-lib\\common\\models\\${processedArgs._[2]}.json`], {
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
}).catch((e) => { console.error(e) })
return p;

Carregando…
Cancelar
Salvar