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
refactor(clone-project): enhance server retrieval by including destinations and filtering out build servers
Andras Bacsai87225405a8f1
diff --git a/app/Livewire/Project/CloneMe.php b/app/Livewire/Project/CloneMe.phpindex c71f6db64f..fefaff4f2a 100644--- a/app/Livewire/Project/CloneMe.php+++ b/app/Livewire/Project/CloneMe.php@@ -54,7 +54,11 @@ class CloneMe extends Component$this->project = Project::where('uuid', $project_uuid)->firstOrFail();$this->environment = $this->project->environments->where('uuid', $this->environment_uuid)->first();$this->project_id = $this->project->id;- $this->servers = currentTeam()->servers;+ $this->servers = currentTeam()+ ->servers()+ ->with('destinations')+ ->get()+ ->reject(fn ($server) => $server->isBuildServer());$this->newName = str($this->project->name.'-clone-'.(string) new Cuid2)->slug();}