This commit is contained in:
2023-10-16 13:42:06 +03:00
parent 5adeaeb2bd
commit 46a91907be
+2 -2
View File
@@ -23,7 +23,7 @@ class BuildController extends Controller
public function build() public function build()
{ {
$buildLogFile = storage_path("build.log"); $buildLogFile = storage_path("lucent/build.log");
if(file_exists($buildLogFile)){ if(file_exists($buildLogFile)){
unlink($buildLogFile); unlink($buildLogFile);
} }
@@ -49,7 +49,7 @@ class BuildController extends Controller
while (true) { while (true) {
sleep(1); // 50ms sleep(1); // 50ms
$data["date"] = date("Y-m-d H:i:s"); $data["date"] = date("Y-m-d H:i:s");
$data["logs"] = file_get_contents(storage_path("build.log")); $data["logs"] = file_get_contents(storage_path("lucent/build.log"));
$lines = explode("\n",$data["logs"]); $lines = explode("\n",$data["logs"]);
echo 'data: ' .json_encode($data); echo 'data: ' .json_encode($data);