new work flow 1

This commit is contained in:
2016-09-30 17:54:31 -04:00
parent 2d027afa29
commit d91df030be
4 changed files with 31 additions and 16 deletions

View File

@ -12,19 +12,19 @@ var calls = {
create: function(req, res, name, sshURL){
return exec('bash /var/www/gitdeploy/create.sh '+name+' '+sshURL, function(err, stdout, stderr){
console.log(err, stdout, stderr);
return res.json({ title: 'Express' });
return res.json({ title: stdout });
});
},
update: function(req, res, name, sshURL){
return exec('bash /var/www/gitdeploy/update.sh '+name+' '+sshURL, function(err, stdout, stderr){
console.log(err, stdout, stderr);
return res.json({ title: 'Express' });
return res.json({ title: stdout });
});
},
delete: function(req, res, name, sshURL){
return exec('bash /var/www/gitdeploy/delete.sh '+name+' '+sshURL, function(err, stdout, stderr){
console.log(err, stdout, stderr);
return res.json({ title: 'Express' });
return res.json({ title: stdout });
});
}