Skip to content

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.

Refactor code for displaying command output in deployment show view

Andras Bacsaid0482d66c289
diff --git a/resources/views/livewire/project/application/deployment/show.blade.php b/resources/views/livewire/project/application/deployment/show.blade.php
index 0804bd5357..dda872c5e4 100644
--- a/resources/views/livewire/project/application/deployment/show.blade.php
+++ b/resources/views/livewire/project/application/deployment/show.blade.php
@@ -85,8 +85,8 @@
@if (decode_remote_command_output($application_deployment_queue)->count() > 0)
@foreach (decode_remote_command_output($application_deployment_queue) as $line)
<span @class([
- 'dark:text-warning' => $line['hidden'],
- 'text-red-500 font-bold' => $line['type'] == 'stderr',
+ 'dark:text-warning whitespace-pre-line' => $line['hidden'],
+ 'text-red-500 font-bold whitespace-pre-line' => $line['type'] == 'stderr',
])>[{{ $line['timestamp'] }}] @if ($line['hidden'])
<br>COMMAND: {{ $line['command'] }}<br>OUTPUT :
@endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://'))