Skip to content

Commit

Permalink
fix server
Browse files Browse the repository at this point in the history
  • Loading branch information
sherix88 committed Dec 12, 2017
1 parent e810e2b commit ae2e2f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,14 @@ app.all('*', function(req, res, next) {
app.post('/', function(req, res) {
var name = req.body.repository.repo_name;
var tag = req.body.push_data.tag;

if (fs.existsSync(directory)){
dir = exec("helm --help", function(err, stdout, stderr) {
var dir = exec("helm --help", function(err, stdout, stderr) {
if (err) { console.log(err) } else {
bot.post(process.env.BOT).send({msg: name}).end(function(err, respuesta){
if(err) { console.log(err) }
})
}
});
dir.on('exit', function (code) { console.log(code) });
} else {
console.log("El directorio no existe"+ directory)
}
});

http.createServer(app).listen(process.env.PORT, function() {
Expand Down

0 comments on commit ae2e2f4

Please sign in to comment.