Skip to content

Commit

Permalink
#192 Build and remove install webgme from build.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeijer committed Feb 26, 2015
1 parent 691ce1f commit 1ec41a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/middleware/executor/worker/build.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
cmd /c npm install || exit /b 3
cmd /c npm install https://github.com/webgme/webgme/tarball/master || exit /b 4
node node_modules\requirejs\bin\r.js -o rjs_build_node_worker.js
7 changes: 3 additions & 4 deletions src/middleware/executor/worker/node_worker.classes.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4195,10 +4195,9 @@ define('executor/ExecutorWorker',['logManager',

var executorConfig = JSON.parse(data);
var cmd = executorConfig.cmd;

logger.debug('working directory: ' + jobDir + ' executing: ' + cmd);

var child = child_process.spawn(cmd, [], {cwd: jobDir, stdio: ['ignore', 'pipe', 'pipe']});
var args = executorConfig.args || [];
logger.debug('working directory: ' + jobDir + ' executing: ' + cmd + ' with args: ' + args.toString());
var child = child_process.spawn(cmd, args, {cwd: jobDir, stdio: ['ignore', 'pipe', 'pipe']});
var outlog = fs.createWriteStream(path.join(jobDir, 'job_stdout.txt'));
child.stdout.pipe(outlog);
child.stdout.pipe(fs.createWriteStream(path.join(self.workingDirectory, jobInfo.hash.substr(0, 6) + '_stdout.txt')));
Expand Down

0 comments on commit 1ec41a7

Please sign in to comment.