Commit 4809e2d2 authored by Andrew Cohen's avatar Andrew Cohen

use execfile and asar path in sidebar launch server code

parent bcc4ce52
......@@ -403,7 +403,7 @@ function startLeverServer()
const path=require('path');
const spawn = require('child_process').spawn;
const spawn = require('child_process').execFile;
var port=document.getElementById('leverServerPort').value;
port=+port;
......@@ -420,7 +420,7 @@ function startLeverServer()
else
serverCmd='node';
var serverArgs=['server.js','--port='+port,serverPath];
var serverArgs=[path.join(__dirname,'..','server.js'),'--port='+port,serverPath];
console.log('launching leverServer : '+serverCmd+' '+serverArgs);
leverServer=spawn(serverCmd,serverArgs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment