Matias Alejo Garcia
7 years ago
committed by
GitHub
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||
#!/usr/bin/env node
|
|||
|
|||
var spawn = require('child_process').spawn; |
|||
var async = require('async'); |
|||
|
|||
var scripts = ['locker/locker.js', 'messagebroker/messagebroker.js', |
|||
'bcmonitor/bcmonitor.js', 'emailservice/emailservice.js', |
|||
'pushnotificationsservice/pushnotificationsservice.js', |
|||
'fiatrateservice/fiatrateservice.js', 'bws.js']; |
|||
|
|||
async.eachSeries(scripts, function(script, callback) { |
|||
console.log(`Spawning ${script}`); |
|||
|
|||
var node = spawn('node', [script]); |
|||
node.stdout.on('data', (data) => { |
|||
console.log(`${data}`); |
|||
}); |
|||
node.stderr.on('data', (data) => { |
|||
console.error(`${data}`); |
|||
}); |
|||
|
|||
callback(); |
|||
}); |
Loading…
Reference in new issue