sidebar
This commit is contained in:
@@ -47,6 +47,7 @@ class BuildController extends Controller
|
||||
{
|
||||
return response()->stream(function () {
|
||||
while (true) {
|
||||
sleep(1); // 50ms
|
||||
$data["date"] = date("Y-m-d H:i:s");
|
||||
$data["logs"] = file_get_contents(storage_path("build.log"));
|
||||
$lines = explode("\n",$data["logs"]);
|
||||
@@ -57,7 +58,7 @@ class BuildController extends Controller
|
||||
ob_flush();
|
||||
flush();
|
||||
|
||||
if(in_array("Finito",$lines)){
|
||||
if(str_contains("Finito",$lines)){
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user