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;
|
var exec = require('child_process').exec;
|
||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.all('/', function(req, res, next) {
|
router.all('/', function(req, res, next) {
|
||||||
|
console.log("some one is here");
|
||||||
if(req.headers['x-github-event'] === 'push'){
|
if(req.headers['x-github-event'] === 'push'){
|
||||||
|
console.log("got a push!");
|
||||||
if(req.body.ref === "refs/heads/master"){
|
if(req.body.ref === "refs/heads/master"){
|
||||||
console.log('time to update master!');
|
console.log('time to update master!');
|
||||||
exec('/var/www/gitwrapperdeploy.sh', console.log, console.log);
|
exec('/var/www/gitwrapperdeploy.sh', console.log, console.log);
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1><%= title %></h1>
|
<h1><%= title %></h1>
|
||||||
<p>Welcome to <%= title %></p>
|
<p>YO!! <%= title %></p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user