From c9bf7c40915fb8f396bec7de298b2b5f2996bc3d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jul 2016 16:26:32 -0400 Subject: [PATCH] old way --- routes/index.js | 2 ++ views/index.ejs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 @@

<%= title %>

-

Welcome to <%= title %>

+

YO!! <%= title %>