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
fix: better status on ui for apps
Andras Bacsai4daa10d38b44
diff --git a/app/Http/Livewire/Application/Heading.php b/app/Http/Livewire/Application/Heading.phpnew file mode 100644index 0000000000..619d4b8baa--- /dev/null+++ b/app/Http/Livewire/Application/Heading.php@@ -0,0 +1,71 @@+<?php++namespace App\Http\Livewire\Application;++use App\Jobs\ApplicationContainerStatusJob;+use App\Models\Application;+use Livewire\Component;+use Visus\Cuid2\Cuid2;++class Heading extends Component+{+ public Application $application;+ public array $parameters;++ protected string $deploymentUuid;++ public function mount()+ {+ $this->parameters = getRouteParameters();+ }++ public function check_status()+ {+ dispatch_sync(new ApplicationContainerStatusJob(+ application: $this->application,+ container_name: generate_container_name($this->application->uuid),+ ));+ $this->application->refresh();+ }+ public function deploy(bool $force_rebuild = false)+ {+ $this->setDeploymentUuid();+ queue_application_deployment(+ application_id: $this->application->id,+ deployment_uuid: $this->deploymentUuid,+ force_rebuild: $force_rebuild,+ );+ return redirect()->route('project.application.deployment', [+ 'project_uuid' => $this->parameters['project_uuid'],+ 'application_uuid' => $this->parameters['application_uuid'],+ 'deployment_uuid' => $this->deploymentUuid,+ 'environment_name' => $this->parameters['environment_name'],+ ]);+ }+ public function force_deploy_with_debug()+ {+ if ($this->application->settings->is_debug_enabled == false) {+ $this->application->settings->is_debug_enabled = true;+ $this->application->settings->save();+ }+ $this->deploy();+ }+ public function force_deploy_without_cache()+ {+ $this->deploy(force_rebuild: true);+ }+ public function stop()+ {+ remote_process(+ ["docker rm -f {$this->application->uuid}"],+ $this->application->destination->server+ );+ $this->application->status = 'stopped';+ $this->application->save();+ }+ protected function setDeploymentUuid()+ {+ $this->deploymentUuid = new Cuid2(7);+ $this->parameters['deployment_uuid'] = $this->deploymentUuid;+ }+}diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex f38cf8463e..416340565f 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -143,15 +143,15 @@ class ApplicationDeploymentJob implements ShouldQueue$this->execute_now(["echo -n 'Pulling latest version of the builder image (ghcr.io/coollabsio/coolify-builder)... '",]);- if (isDev()) {- $this->execute_now([- "docker run -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock coolify-builder",- ], isDebuggable: true);- } else {- $this->execute_now([- "docker run --pull=always -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-builder",- ], isDebuggable: true);- }+ // if (isDev()) {+ // $this->execute_now([+ // "docker run -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock coolify-builder",+ // ], isDebuggable: true);+ // } else {+ $this->execute_now([+ "docker run --pull=always -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-builder",+ ], isDebuggable: true);+ // }$this->execute_now(["echo 'Done.'"]);@@ -300,22 +300,19 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}public function failed(Throwable $exception): void{- ray($exception);$this->next(ProcessStatus::ERROR->value);}private function next(string $status){- if (!Str::of($this->application_deployment_queue->status)->startsWith('cancelled')) {- ray('Next Status: ' . $status)->green();- $this->application_deployment_queue->update([- 'status' => $status,- ]);- $this->activity->properties = $this->activity->properties->merge([- 'status' => $status,- ]);- $this->activity->save();- }+ ray('Next Status: ' . $status)->green();+ $this->application_deployment_queue->update([+ 'status' => $status,+ ]);+ $this->activity->properties = $this->activity->properties->merge([+ 'status' => $status,+ ]);+ $this->activity->save();if ($this->pull_request_id) {dispatch(new ApplicationPullRequestUpdateJob(application_id: $this->application->id,diff --git a/app/Models/ApplicationDeploymentQueue.php b/app/Models/ApplicationDeploymentQueue.phpindex 474c38cc84..39642813a6 100644--- a/app/Models/ApplicationDeploymentQueue.php+++ b/app/Models/ApplicationDeploymentQueue.php@@ -2,9 +2,7 @@namespace App\Models;-use Illuminate\Contracts\Database\Eloquent\Builder;use Illuminate\Database\Eloquent\Model;-use Spatie\SchemalessAttributes\Casts\SchemalessAttributes;class ApplicationDeploymentQueue extends Model{diff --git a/docker-compose.prod.yml b/docker-compose.prod.ymlindex cc22fad99e..872480a6e6 100644--- a/docker-compose.prod.yml+++ b/docker-compose.prod.yml@@ -26,7 +26,8 @@ services:- REDIS_PASSWORD- SSL_MODE=off- PHP_PM_CONTROL=dynamic- - PHP_PM_START_SERVERS=5+ - PHP_PM_START_SERVERS=1+ - PHP_PM_MIN_SPARE_SERVERS=1- PHP_PM_MAX_SPARE_SERVERS=10ports:- "${APP_PORT:-8000}:80"diff --git a/resources/views/livewire/project/application/deploy.blade.php b/resources/views/components/applications/actions.blade.phpsimilarity index 95%rename from resources/views/livewire/project/application/deploy.blade.phprename to resources/views/components/applications/actions.blade.phpindex dda1e9a9a1..d762a5360a 100644--- a/resources/views/livewire/project/application/deploy.blade.php+++ b/resources/views/components/applications/actions.blade.php@@ -1,4 +1,4 @@-<div class="flex items-center gap-2" wire:poll.10000ms="pollStatus" x-init="$wire.pollStatus">+<div class="flex items-center gap-2"><div class="group"><label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Actions<x-chevron-down />@@ -9,9 +9,8 @@@if ($application->status === 'running')<li><div class="rounded-none hover:bg-coollabs" wire:click='deploy'><svg- xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">+ xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5"+ stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" />@@ -20,7 +19,7 @@</svg>Restart</div></li><li>- <div class="rounded-none hover:bg-coollabs" wire:click='deploy(true, true)'><svg+ <div class="rounded-none hover:bg-coollabs" wire:click='force_deploy_with_debug'><svgxmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"stroke-linejoin="round">@@ -39,7 +38,7 @@</div></li><li>- <div class="rounded-none hover:bg-coollabs" wire:click='deploy(true)'><svg+ <div class="rounded-none hover:bg-coollabs" wire:click='force_deploy_without_cache'><svgxmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"stroke-linejoin="round">diff --git a/resources/views/components/applications/breadcrumbs.blade.php b/resources/views/components/applications/breadcrumbs.blade.phpnew file mode 100644index 0000000000..b707d118e8--- /dev/null+++ b/resources/views/components/applications/breadcrumbs.blade.php@@ -0,0 +1,49 @@+ <nav class="flex pt-2 pb-10">+ <ol class="flex items-center">+ <li class="inline-flex items-center">+ <a class="text-xs truncate lg:text-sm"+ href="{{ route('project.show', ['project_uuid' => $this->parameters['project_uuid']]) }}">+ {{ $application->environment->project->name }}</a>+ </li>+ <li>+ <div class="flex items-center">+ <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor" viewBox="0 0 20 20"+ xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd"+ d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"+ clip-rule="evenodd"></path>+ </svg>+ <a class="text-xs truncate lg:text-sm"+ href="{{ route('project.resources', ['environment_name' => $this->parameters['environment_name'], 'project_uuid' => $this->parameters['project_uuid']]) }}">{{ $this->parameters['environment_name'] }}</a>+ </div>+ </li>+ <li>+ <div class="flex items-center">+ <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"+ viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd"+ d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"+ clip-rule="evenodd"></path>+ </svg>+ <span class="text-xs truncate lg:text-sm">{{ data_get($application, 'name') }}</span>+ </div>+ </li>+ <li>+ <div class="flex items-center">+ <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"+ viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd"+ d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"+ clip-rule="evenodd"></path>+ </svg>+ </div>+ </li>+ @if ($application->status === 'running')+ <x-status.running />+ @elseif($application->status === 'restarting')+ <x-status.restarting />+ @else+ <x-status.stopped />+ @endif+ </ol>+ </nav>diff --git a/resources/views/components/applications/links.blade.php b/resources/views/components/applications/links.blade.phpnew file mode 100644index 0000000000..4a8e14672e--- /dev/null+++ b/resources/views/components/applications/links.blade.php@@ -0,0 +1,92 @@+<div class="group">+ <label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Links+ <x-chevron-down />+ </label>++ <div class="absolute hidden group-hover:block">+ <ul tabindex="0" class="relative -ml-24 text-xs text-white normal-case rounded min-w-max menu bg-coolgray-200">+ <li>+ <a target="_blank" class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"+ href="{{ $application->gitBranchLocation }}">+ <x-git-icon git="{{ $application->source?->getMorphClass() }}" />+ Git Repository+ </a>+ </li>+ @if (data_get($application, 'fqdn'))+ @foreach (Str::of(data_get($application, 'fqdn'))->explode(',') as $fqdn)+ <li>+ <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs" target="_blank"+ href="{{ $fqdn }}">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"+ stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M9 15l6 -6" />+ <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />+ <path+ d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />+ </svg>{{ $fqdn }}+ </a>+ </li>+ @endforeach+ @endif+ @if (data_get($application, 'previews')->count() > 0)+ @foreach (data_get($application, 'previews') as $preview)+ @if (data_get($preview, 'fqdn'))+ <li>+ <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"+ target="_blank" href="{{ data_get($preview, 'fqdn') }}">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"+ stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M9 15l6 -6" />+ <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />+ <path+ d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />+ </svg>PR{{ data_get($preview, 'pull_request_id') }} |+ {{ data_get($preview, 'fqdn') }}+ </a>+ </li>+ @endif+ @endforeach+ @endif+ @if (data_get($application, 'ports_mappings_array'))+ @foreach ($application->ports_mappings_array as $port)+ @if (isDev())+ <li>+ <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"+ target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"+ stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M9 15l6 -6" />+ <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />+ <path+ d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />+ </svg>Port {{ $port }}+ </a>+ </li>+ @else+ <li>+ <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"+ target="_blank"+ href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">+ <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"+ stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"+ stroke-linejoin="round">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M9 15l6 -6" />+ <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />+ <path+ d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />+ </svg>Port {{ $port }}+ </a>+ </li>+ @endif+ @endforeach+ @endif+ </ul>+ </div>+</div>diff --git a/resources/views/components/applications/navbar.blade.php b/resources/views/components/applications/navbar.blade.phpindex 8c4ede4700..5858787d58 100644--- a/resources/views/components/applications/navbar.blade.php+++ b/resources/views/components/applications/navbar.blade.php@@ -1,155 +1,13 @@-<nav class="flex pt-2 pb-10">- <ol class="flex items-center">- <li class="inline-flex items-center">- <a class="text-xs truncate lg:text-sm"- href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">- {{ $application->environment->project->name }}</a>- </li>- <li>- <div class="flex items-center">- <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor" viewBox="0 0 20 20"- xmlns="http://www.w3.org/2000/svg">- <path fill-rule="evenodd"- d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"- clip-rule="evenodd"></path>- </svg>- <a class="text-xs truncate lg:text-sm"- href="{{ route('project.resources', ['environment_name' => request()->route('environment_name'), 'project_uuid' => request()->route('project_uuid')]) }}">{{ request()->route('environment_name') }}</a>- </div>- </li>- <li>- <div class="flex items-center">- <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"- viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">- <path fill-rule="evenodd"- d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"- clip-rule="evenodd"></path>- </svg>- <span class="text-xs truncate lg:text-sm">{{ data_get($application, 'name') }}</span>- </div>- </li>- <li>- <div class="flex items-center">- <svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"- viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">- <path fill-rule="evenodd"- d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"- clip-rule="evenodd"></path>- </svg>- <livewire:project.application.status :application="$application" />- </div>- </li>- </ol>-</nav>-<nav class="flex items-end gap-4 py-2 border-b-2 border-solid border-coolgray-200">+<div class="flex items-end gap-4 py-2 border-b-2 border-solid border-coolgray-200"><a class="{{ request()->routeIs('project.application.configuration') ? 'text-white' : '' }}"- href="{{ route('project.application.configuration', [- 'project_uuid' => Route::current()->parameters()['project_uuid'],- 'application_uuid' => Route::current()->parameters()['application_uuid'],- 'environment_name' => Route::current()->parameters()['environment_name'],- ]) }}">+ href="{{ route('project.application.configuration', $parameters) }}"><button>Configuration</button></a><a class="{{ request()->routeIs('project.application.deployments') ? 'text-white' : '' }}"- href="{{ route('project.application.deployments', [- 'project_uuid' => Route::current()->parameters()['project_uuid'],- 'application_uuid' => Route::current()->parameters()['application_uuid'],- 'environment_name' => Route::current()->parameters()['environment_name'],- ]) }}">+ href="{{ route('project.application.deployments', $parameters) }}"><button>Deployments</button></a><div class="flex-1"></div>- <div class="group">- <label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Links- <x-chevron-down />- </label>- <div class="absolute hidden group-hover:block">- <ul tabindex="0"- class="relative -ml-24 text-xs text-white normal-case rounded min-w-max menu bg-coolgray-200">- <li>- <a target="_blank" class="text-xs text-white rounded-none hover:no-underline"- href="{{ $application->gitBranchLocation }}">- <x-git-icon git="{{ $application->source?->getMorphClass() }}" />- Git Repository- </a>- </li>- @if (data_get($application, 'fqdn'))- @foreach (Str::of(data_get($application, 'fqdn'))->explode(',') as $fqdn)- <li>- <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"- target="_blank" href="{{ $fqdn }}">- <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 15l6 -6" />- <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />- <path- d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />- </svg>{{ $fqdn }}- </a>- </li>- @endforeach- @endif- @if (data_get($application, 'previews')->count() > 0)- @foreach (data_get($application, 'previews') as $preview)- @if (data_get($preview, 'fqdn'))- <li>- <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"- target="_blank" href="{{ data_get($preview, 'fqdn') }}">- <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 15l6 -6" />- <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />- <path- d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />- </svg>PR{{ data_get($preview, 'pull_request_id') }} |- {{ data_get($preview, 'fqdn') }}- </a>- </li>- @endif- @endforeach- @endif- @if (data_get($application, 'ports_mappings_array'))- @foreach ($application->ports_mappings_array as $port)- @if (isDev())- <li>- <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"- target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">- <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"- stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 15l6 -6" />- <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />- <path- d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />- </svg>Port {{ $port }}- </a>- </li>- @else- <li>- <a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"- target="_blank"- href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">- <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" fill="none"- stroke-linecap="round" stroke-linejoin="round">- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 15l6 -6" />- <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />- <path- d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />- </svg>Port {{ $port }}- </a>- </li>- @endif- @endforeach- @endif- </ul>- </div>- </div>- <livewire:project.application.deploy :applicationId="$application->id" />-</nav>+ <x-applications.links :application="$application" />+ <x-applications.actions :application="$application" />+</div>diff --git a/resources/views/components/status/restarting.blade.php b/resources/views/components/status/restarting.blade.phpindex 23d797271e..08a98c0647 100644--- a/resources/views/components/status/restarting.blade.php+++ b/resources/views/components/status/restarting.blade.php@@ -1,4 +1,4 @@-<x-loading wire:loading.delay.longer />+<x-loading wire:loading.delay /><div class="flex items-center gap-2 " wire:loading.remove.delay.longer><div class="badge badge-error badge-xs"></div><div class="text-xs font-medium tracking-wide text-error">Stopped</div>diff --git a/resources/views/livewire/application/heading.blade.php b/resources/views/livewire/application/heading.blade.phpnew file mode 100644index 0000000000..c3d33543e4--- /dev/null+++ b/resources/views/livewire/application/heading.blade.php@@ -0,0 +1,4 @@+<nav x-init="$wire.check_status" wire:poll.10000ms="check_status">+ <x-applications.breadcrumbs :application="$application" :parameters="$parameters" />+ <x-applications.navbar :application="$application" :parameters="$parameters" />+</nav>diff --git a/resources/views/project/application/configuration.blade.php b/resources/views/project/application/configuration.blade.phpindex bc01066872..73a9ff8059 100644--- a/resources/views/project/application/configuration.blade.php+++ b/resources/views/project/application/configuration.blade.php@@ -1,6 +1,6 @@<x-layout><h1>Configuration</h1>- <x-applications.navbar :application="$application" />+ <livewire:application.heading :application="$application" /><div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-6"><div class="flex flex-col gap-4 min-w-fit"><a :class="activeTab === 'general' && 'text-white'"diff --git a/resources/views/project/application/deployment.blade.php b/resources/views/project/application/deployment.blade.phpindex cf095fab05..4b855a16bf 100644--- a/resources/views/project/application/deployment.blade.php+++ b/resources/views/project/application/deployment.blade.php@@ -1,5 +1,5 @@<x-layout><h1 class="py-0">Deployment</h1>- <x-applications.navbar :application="$application" />+ <livewire:application.heading :application="$application" /><livewire:project.application.deployment-logs :activity="$activity" :application="$application" :deployment_uuid="$deployment_uuid" /></x-layout>diff --git a/resources/views/project/application/deployments.blade.php b/resources/views/project/application/deployments.blade.phpindex cad4fcb9f4..1f68340b4f 100644--- a/resources/views/project/application/deployments.blade.php+++ b/resources/views/project/application/deployments.blade.php@@ -1,5 +1,5 @@<x-layout><h1>Deployments</h1>- <x-applications.navbar :application="$application" />+ <livewire:application.heading :application="$application" /><livewire:project.application.deployments :application_id="$application->id" /></x-layout>