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: Add metrics warning for servers without Sentinel enabled
Andras Bacsaif607aa123316
diff --git a/resources/views/livewire/project/shared/metrics.blade.php b/resources/views/livewire/project/shared/metrics.blade.phpindex f27c71bf5b..95ef9ced7e 100644--- a/resources/views/livewire/project/shared/metrics.blade.php+++ b/resources/views/livewire/project/shared/metrics.blade.php@@ -5,6 +5,12 @@<div class="pb-4">Basic metrics for your container.</div>@if ($resource->getMorphClass() === 'App\Models\Application' && $resource->build_pack === 'dockercompose')<div class="alert alert-warning">Metrics are not available for Docker Compose applications yet!</div>+ @elseif(!$resource->destination->server->isSentinelEnabled())+ <div class="alert alert-warning">Metrics are only available for servers with Sentinel enabled!</div>+ <div> Go to <a class="underline dark:text-white"+ href="{{ route('server.show', $resource->destination->server->uuid) }}">Server settings</a> to+ enable+ it.</div>@else@if (!str($resource->status)->contains('running'))<div class="alert alert-warning">Metrics are only available when the application is running!</div>