switched to prod
This commit is contained in:
parent
c9bf7c4091
commit
49e2010f07
@ -6,8 +6,8 @@ router.all('/', function(req, res, next) {
|
|||||||
console.log("some one is here");
|
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!");
|
console.log("got a push!");
|
||||||
if(req.body.ref === "refs/heads/master"){
|
if(req.body.ref === "refs/heads/prod"){
|
||||||
console.log('time to update master!');
|
console.log('time to update prod!');
|
||||||
exec('/var/www/gitwrapperdeploy.sh', console.log, console.log);
|
exec('/var/www/gitwrapperdeploy.sh', console.log, console.log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user