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
<?php
namespace App\Livewire\Project\Application;
use App\Models\Application;
use App\Traits\ListensToTeamChannel;
use Illuminate\Contracts\View\View;
use Livewire\Component;
class Status extends Component
{
use ListensToTeamChannel;
public Application $application;
public function getListeners(): array
{
return $this->teamChannelListeners([
'ServiceStatusChanged' => 'refreshStatus',
'ServiceChecked' => 'refreshStatus',
]);
}
public function refreshStatus(): void
{
$this->application->refresh();
}
public function render(): View
{
return view('livewire.project.application.status', [
'healthcheckUrl' => route('project.application.healthcheck', [
'project_uuid' => $this->application->project()->uuid,
'environment_uuid' => $this->application->environment->uuid,
'application_uuid' => $this->application->uuid,
]),
]);
}
}