diff --git a/app/Http/Livewire/Project/Shared/GetLogs.php b/app/Http/Livewire/Project/Shared/GetLogs.php index aba2e2649..6c2ce37b5 100644 --- a/app/Http/Livewire/Project/Shared/GetLogs.php +++ b/app/Http/Livewire/Project/Shared/GetLogs.php @@ -13,7 +13,7 @@ class GetLogs extends Component public Server $server; public ?string $container = null; public ?bool $streamLogs = false; - + public int $numberOfLines = 1000; public function doSomethingWithThisChunkOfOutput($output) { $this->outputs .= $output; @@ -24,7 +24,7 @@ class GetLogs extends Component public function getLogs($refresh = false) { if ($this->container) { - $sshCommand = generateSshCommand($this->server, "docker logs -t {$this->container}"); + $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} -t {$this->container}"); if ($refresh) { $this->outputs = ''; } diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php index 0551fd5fe..c1ca915a6 100644 --- a/resources/views/livewire/project/shared/get-logs.blade.php +++ b/resources/views/livewire/project/shared/get-logs.blade.php @@ -2,9 +2,14 @@