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: deployment_uuid -> type_uuid
Andras Bacsaif6c7343b7086
diff --git a/app/Http/Controllers/ApplicationController.php b/app/Http/Controllers/ApplicationController.phpindex 3cc33c2033..877ca32544 100644--- a/app/Http/Controllers/ApplicationController.php+++ b/app/Http/Controllers/ApplicationController.php@@ -56,7 +56,7 @@ class ApplicationController extends Controllerif (!$application) {return redirect()->route('dashboard');}- $activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();+ $activity = Activity::where('properties->type_uuid', '=', $deployment_uuid)->first();return view('project.application.deployment', ['application' => $application,diff --git a/app/Http/Livewire/Project/Application/GetDeployments.php b/app/Http/Livewire/Project/Application/GetDeployments.phpindex 1037eb727d..2df15d0c47 100644--- a/app/Http/Livewire/Project/Application/GetDeployments.php+++ b/app/Http/Livewire/Project/Application/GetDeployments.php@@ -12,7 +12,7 @@ class GetDeployments extends Componentpublic string $status;public function polling(){- $activity = Activity::where('properties->deployment_uuid', '=', $this->deployment_uuid)->first();+ $activity = Activity::where('properties->type_uuid', '=', $this->deployment_uuid)->first();$this->created_at = $activity->created_at;$this->status = data_get($activity, 'properties.status');}diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 48234efe09..b79ca182d5 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -94,13 +94,12 @@ class Application extends BaseModelreturn $this->morphMany(LocalPersistentVolume::class, 'resource');}-public function deployments(){- return Activity::where('subject_id', $this->id)->where('properties->deployment_uuid', '!=', null)->orderBy('created_at', 'desc')->get();+ return Activity::where('subject_id', $this->id)->where('properties->type', '=', 'deployment')->orderBy('created_at', 'desc')->get();}public function get_deployment(string $deployment_uuid){- return Activity::where('subject_id', $this->id)->where('properties->deployment_uuid', '=', $deployment_uuid)->first();+ return Activity::where('subject_id', $this->id)->where('properties->type_uuid', '=', $deployment_uuid)->first();}}diff --git a/resources/views/project/application/deployments.blade.php b/resources/views/project/application/deployments.blade.phpindex dd159d1731..3d3e76d5b0 100644--- a/resources/views/project/application/deployments.blade.php+++ b/resources/views/project/application/deployments.blade.php@@ -3,7 +3,7 @@<x-applications.navbar :applicationId="$application->id" /><div class="pt-2">@forelse ($deployments as $deployment)- <livewire:project.application.get-deployments :deployment_uuid="data_get($deployment->properties, 'deployment_uuid')" :created_at="data_get($deployment, 'created_at')" :status="data_get($deployment->properties, 'status')" />+ <livewire:project.application.get-deployments :deployment_uuid="data_get($deployment->properties, 'type_uuid')" :created_at="data_get($deployment, 'created_at')" :status="data_get($deployment->properties, 'status')" />@empty<p>No deployments found.</p>@endforelse