sidebar
This commit is contained in:
@@ -23,7 +23,7 @@ class BuildController extends Controller
|
||||
public function build()
|
||||
{
|
||||
|
||||
$buildLogFile = storage_path("build.log");
|
||||
$buildLogFile = storage_path("lucent/build.log");
|
||||
if(file_exists($buildLogFile)){
|
||||
unlink($buildLogFile);
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class BuildController extends Controller
|
||||
while (true) {
|
||||
sleep(1); // 50ms
|
||||
$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"]);
|
||||
|
||||
echo 'data: ' .json_encode($data);
|
||||
|
||||
Reference in New Issue
Block a user