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
feat: full screen logs fix: logs are in order now
Andras Bacsai1175d68ab5c2
diff --git a/app/Http/Livewire/Project/Shared/GetLogs.php b/app/Http/Livewire/Project/Shared/GetLogs.phpindex 90983785d7..e82f204971 100644--- a/app/Http/Livewire/Project/Shared/GetLogs.php+++ b/app/Http/Livewire/Project/Shared/GetLogs.php@@ -33,9 +33,11 @@ class GetLogs extends Componentif ($refresh) {$this->outputs = '';}- Process::run($sshCommand, function (string $type, string $output) {- $this->doSomethingWithThisChunkOfOutput($output);- });+ $command = Process::run($sshCommand);+ $output = $command->output();+ $error = $command->errorOutput();+ $this->doSomethingWithThisChunkOfOutput($output);+ $this->doSomethingWithThisChunkOfOutput($error);}}public function render()diff --git a/resources/css/app.css b/resources/css/app.cssindex ee4ec7b778..76d7f19a56 100644--- a/resources/css/app.css+++ b/resources/css/app.css@@ -121,3 +121,6 @@ tr td:first-child {.subtitle {@apply pt-2 pb-10;}+.fullscreen {+ @apply fixed top-0 left-0 w-full h-full z-[9999] bg-coolgray-200;+}diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.phpindex eed8f143b2..3514d4cdb1 100644--- a/resources/views/livewire/project/shared/get-logs.blade.php+++ b/resources/views/livewire/project/shared/get-logs.blade.php@@ -14,10 +14,23 @@<x-forms.button type="submit">Refresh</x-forms.button></form>- <div class="container w-full pt-4 mx-auto">+ <div x-data="{ fullscreen: false }" :class="fullscreen ? 'fullscreen' : 'container w-full pt-4 mx-auto'"><div- class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded border-coolgray-300 max-h-[32rem] p-4 pt-6 text-xs text-white">-+ class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded border-coolgray-300 max-h-[32rem] p-4 pt-6 text-xs text-white relative">+ <button title="Minimize" x-show="fullscreen" class="absolute top-2 right-2" x-on:click="fullscreen = !fullscreen"><svg+ class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">+ <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"+ stroke-width="2" d="M6 14h4m0 0v4m0-4l-6 6m14-10h-4m0 0V6m0 4l6-6" />+ </svg></button>+ <button title="Fullscreen" x-show="!fullscreen" class="absolute top-2 right-2" x-on:click="fullscreen = !fullscreen"><svg+ class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">+ <g fill="none">+ <path+ d="M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z" />+ <path fill="currentColor"+ d="M9.793 12.793a1 1 0 0 1 1.497 1.32l-.083.094L6.414 19H9a1 1 0 0 1 .117 1.993L9 21H4a1 1 0 0 1-.993-.883L3 20v-5a1 1 0 0 1 1.993-.117L5 15v2.586l4.793-4.793ZM20 3a1 1 0 0 1 .993.883L21 4v5a1 1 0 0 1-1.993.117L19 9V6.414l-4.793 4.793a1 1 0 0 1-1.497-1.32l.083-.094L17.586 5H15a1 1 0 0 1-.117-1.993L15 3h5Z" />+ </g>+ </svg></button><pre class="font-mono whitespace-pre-wrap">{{ $outputs }}</pre></div></div>