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");
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!');
if(req.body.ref === "refs/heads/prod"){
console.log('time to update prod!');
exec('/var/www/gitwrapperdeploy.sh', console.log, console.log);
}
}