Deployment

@if (data_get($application_deployment_queue, 'status') === 'in_progress')
Deployment is
{{ Str::headline(data_get($this->application_deployment_queue, 'status')) }}.
{{--
Logs will be updated automatically.
--}} @else
Deployment is {{ Str::headline(data_get($application_deployment_queue, 'status')) }}.
@endif
@if (decode_remote_command_output($application_deployment_queue)->count() > 0) @foreach (decode_remote_command_output($application_deployment_queue) as $line) $line['hidden'], 'text-red-500 font-bold whitespace-pre-line' => $line['type'] == 'stderr', ])>[{{ $line['timestamp'] }}] @if ($line['hidden'])

[COMMAND] {{ $line['command'] }}
[OUTPUT] @endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://')) @php $line['output'] = preg_replace( '/(https?:\/\/[^\s]+)/', '$1', $line['output'], ); @endphp {!! $line['output'] !!} @else {{ $line['output'] }} @endif
@endforeach @else No logs yet. @endif