test deploy

This commit is contained in:
Adrian Tiberius 2016-09-18 09:21:23 +03:00
parent 2dfe6c7f7c
commit 9148196a6f

View File

@ -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) ){