An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: proxy logs
Andras Bacsaie9920f05f524
diff --git a/app/Livewire/Project/Shared/GetLogs.php b/app/Livewire/Project/Shared/GetLogs.phpindex db2170b5f7..220c6b9af6 100644--- a/app/Livewire/Project/Shared/GetLogs.php+++ b/app/Livewire/Project/Shared/GetLogs.php@@ -70,27 +70,27 @@ class GetLogs extends Component}public function getLogs($refresh = false){- if (!$refresh && $this->resource->getMorphClass() === 'App\Models\Service') return;- if ($this->container) {- if ($this->showTimeStamps) {- $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} -t {$this->container}");- } else {- $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} {$this->container}");- }- if ($refresh) {- $this->outputs = '';- }- Process::run($sshCommand, function (string $type, string $output) {- $this->doSomethingWithThisChunkOfOutput($output);- });- if ($this->showTimeStamps) {- $this->outputs = str($this->outputs)->split('/\n/')->sort(function ($a, $b) {- $a = explode(' ', $a);- $b = explode(' ', $b);- return $a[0] <=> $b[0];- })->join("\n");+ if (!$refresh && $this->resource?->getMorphClass() === 'App\Models\Service') return;+ if ($this->container) {+ if ($this->showTimeStamps) {+ $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} -t {$this->container}");+ } else {+ $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} {$this->container}");+ }+ if ($refresh) {+ $this->outputs = '';+ }+ Process::run($sshCommand, function (string $type, string $output) {+ $this->doSomethingWithThisChunkOfOutput($output);+ });+ if ($this->showTimeStamps) {+ $this->outputs = str($this->outputs)->split('/\n/')->sort(function ($a, $b) {+ $a = explode(' ', $a);+ $b = explode(' ', $b);+ return $a[0] <=> $b[0];+ })->join("\n");+ }}- }}public function render(){