diff --git a/routes/index.js b/routes/index.js index 8645530..3fd792c 100644 --- a/routes/index.js +++ b/routes/index.js @@ -3,7 +3,9 @@ var router = express.Router(); var exec = require('child_process').exec; /* GET home page. */ router.all('/', function(req, res, next) { + console.log("some one is here"); if(req.headers['x-github-event'] === 'push'){ + console.log("got a push!"); if(req.body.ref === "refs/heads/master"){ console.log('time to update master!'); exec('/var/www/gitwrapperdeploy.sh', console.log, console.log); diff --git a/views/index.ejs b/views/index.ejs index 7b7a1d6..e4f297a 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -6,6 +6,6 @@
Welcome to <%= title %>
+YO!! <%= title %>