diff --git a/server.js b/server.js index b0aaf05..58b5890 100644 --- a/server.js +++ b/server.js @@ -68,6 +68,19 @@ app.post('/', function(req, res){ res.status(204).send('POST received'); }); +// This is broken due to permission error from bitbucket. +// Not sure how to auth container git user to bitbucket...comment it all out for now. +//setInterval(function() { + //// Push to bitbucker every 30min. + //var exec = require('child_process').exec; + //var cmd = 'cd note-data && git push'; + //winston.info(cmd); + //exec(cmd, function(error, stdout, stderr) { + //if (error) { winston.error(error); } + //winston.info(stdout); + //}); +//}, 30 * 60 * 1000); + app.listen(3000, function() { winston.info("Started on PORT 3000"); });