박은주

Modified scheduler

Showing 1 changed file with 5 additions and 2 deletions
......@@ -18,9 +18,12 @@ app.use(express.static(__dirname + '/static'));
function update() {
console.log('Updating . . .');
spawn('python3', ["run.py"])
var getdata = spawn('python3', ["run.py"])
getdata.stdout.on('data', function(data) {
console.log(data.toString());
})
}
setInterval(update, 1000 * 60 * 60 * 3)
setInterval(update, 1000 * 60 * 60 * 2)
var server = http.createServer(app).listen(port, function(){
console.log("Server Running . . .");
......