Tried and failed to push changes to bitbucket every 30min.
This commit is contained in:
parent
7db34b296c
commit
41268f431a
13
server.js
13
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");
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user