switched to prod

This commit is contained in:
William Mantly 2016-07-08 16:29:31 -04:00
parent c9bf7c4091
commit 49e2010f07

View File

@ -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);
} }
} }