old way
This commit is contained in:
parent
b58deaaa86
commit
c9bf7c4091
@ -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);
|
||||
|
@ -6,6 +6,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1><%= title %></h1>
|
||||
<p>Welcome to <%= title %></p>
|
||||
<p>YO!! <%= title %></p>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user