small fixes

This commit is contained in:
Andras Bacsai 2023-05-03 21:35:34 +02:00
parent 4a97b762be
commit c3b1c493a1
2 changed files with 4 additions and 13 deletions

View File

@ -43,7 +43,7 @@ protected function getDockerComposeContents()
protected function getComposeData(): array
{
$cwd = config('app.env') === 'local'
? config('coolify.project_path_on_host') . '_testing_hosts/host_2_proxy'
? config('coolify.project_path_on_host') . '/_testing_hosts/host_2_proxy'
: '.';
ray($cwd);
@ -104,7 +104,7 @@ protected function getEnvContents()
];
return collect($data)
->map(fn($v, $k) => "{$k}={$v}")
->map(fn ($v, $k) => "{$k}={$v}")
->push(PHP_EOL)
->implode(PHP_EOL);
}

View File

@ -2,16 +2,7 @@
@isset($this->activity)
<span>Activity: {{ $this->activity?->id }}</span>
<span>Status: {{ $this->activity?->properties->get('status') }}</span>
<pre
class="h-[400px] flex flex-col-reverse w-full bg-[#cbcbcb] overflow-y-scroll"
@if($isPollingActive)
wire:poll.750ms="polling"
@endif
>{{
\App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($this->activity)
}}</pre>
@else
Not monitoring any activity.
<pre class="flex flex-col-reverse w-full overflow-y-scroll"
@if ($isPollingActive) wire:poll.750ms="polling" @endif>{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($this->activity) }}</pre>
@endisset
</div>