This commit is contained in:
2023-10-16 13:16:22 +03:00
parent 96c2204939
commit 5adeaeb2bd
7 changed files with 94 additions and 100 deletions
+2 -1
View File
@@ -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;
}