Skip to content

Commit

Permalink
Remote compatibility with Windows (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoah authored Oct 5, 2022
1 parent d30a75c commit f27ec8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/command/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ module.exports = {

return new Promise(function (resolve, reject) {
const port = getRemotePort();
const commandStr = `SSWS_HTTP_PORT=${port} node ${ssws} ${projectPath} ${MIDDLEWARE_PATH} --config=${config.backstopConfigFileName}`;
const commandStr = `node ${ssws} ${projectPath} ${MIDDLEWARE_PATH} --config=${config.backstopConfigFileName}`;
const env = {'SSWS_HTTP_PORT': port};

logger.log(`Starting remote with: ${commandStr}`);
logger.log(`Starting remote with: ${commandStr} with env ${JSON.stringify(env)}`);

const child = exec(commandStr);
const child = exec(commandStr, {env: env});

child.stdout.on('data', logger.log);

Expand Down

0 comments on commit f27ec8f

Please sign in to comment.