From 9148196a6ffc6f2428da9c0950e381f3fbf1d731 Mon Sep 17 00:00:00 2001 From: Adrian Tiberius Date: Sun, 18 Sep 2016 09:21:23 +0300 Subject: [PATCH] test deploy --- src/post-receive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/post-receive.php b/src/post-receive.php index 2351d6e..d8823ce 100644 --- a/src/post-receive.php +++ b/src/post-receive.php @@ -3,7 +3,7 @@ $command = "cd /var/www/status-site && git reset --hard HEAD && git pull origin // TODO check against ip or secret hash -if ( $_SERVER['HTTP_X_GITHUB_EVENT'] == 'push' ) { +if ( $_SERVER['X-GitHub-Event'] == 'push' ) { if( ($fp = popen($command, "r")) ) { while( !feof($fp) ){