Browse Source

watcher

master
zeus 4 years ago
parent
commit
ffb448b720
  1. 7
      swarmlab-app/src/run/app.js

7
swarmlab-app/src/run/app.js

@ -195,9 +195,14 @@ global.online='ob';
watcher
.on('add', function(path) {
console.log('File', path, 'has been added');
var pathfile = pathmodule.basename(path);
var pathfileval = pathmodule.basename(path);
var arrfile = str.split("-").map(function (pathfileval) {
return Number(val) + 1;
});
var pathfile = arrfile[0];
console.log('Filepath ', pathfile, ' check');
// /var/lab/playground-serverlogs/ondemand_playgroundnodejs_masterJPMqt1Jr-RgpMZFwJ-log
// ondemand_playgroundnodejs_masterPQvbrWga-AQxgfnSJ-output
(async() => {
var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto
var resdata = await getpipelines(token,pathfile)

Loading…
Cancel
Save