add log file
This commit is contained in:
parent
399d51e636
commit
d77d57d3e4
|
@ -7,7 +7,9 @@ if ( $_SERVER['HTTP_X_GITHUB_EVENT'] == 'push' ) {
|
||||||
|
|
||||||
if( ($fp = popen($command, "r")) ) {
|
if( ($fp = popen($command, "r")) ) {
|
||||||
while( !feof($fp) ){
|
while( !feof($fp) ){
|
||||||
echo fread($fp, 1024);
|
$result = fread($fp, 1024);
|
||||||
|
file_put_contents("build.log", $result, FILE_APPEND);
|
||||||
|
echo $result;
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
Loading…
Reference in New Issue