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: Update Docker Compose location handling in PublicGitRepository
Andras Bacsaia3a61dbe55b0
diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.phpindex b29fe8cab2..b5c5cb1db0 100644--- a/app/Livewire/Project/New/PublicGitRepository.php+++ b/app/Livewire/Project/New/PublicGitRepository.php@@ -99,6 +99,16 @@ class PublicGitRepository extends Component}}+ public function updatedDockerComposeLocation()+ {+ if ($this->docker_compose_location) {+ $this->docker_compose_location = rtrim($this->docker_compose_location, '/');+ if (! str($this->docker_compose_location)->startsWith('/')) {+ $this->docker_compose_location = '/'.$this->docker_compose_location;+ }+ }+ }+public function updatedBuildPack(){if ($this->build_pack === 'nixpacks') {diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.phpindex 01cd67575e..cef6cffaf4 100644--- a/resources/views/livewire/project/new/public-git-repository.blade.php+++ b/resources/views/livewire/project/new/public-git-repository.blade.php@@ -4,7 +4,7 @@<form class="flex flex-col gap-2" wire:submit='loadBranch'><div class="flex flex-col gap-2"><div class="flex flex-col gap-2">- <div class="flex items-end gap-2">+ <div class="flex gap-2 items-end"><x-forms.input required id="repository_url" label="Repository URL (https://)"helper="{!! __('repository.url') !!}" /><x-forms.button type="submit">@@ -47,7 +47,7 @@@if ($build_pack === 'dockercompose')<x-forms.input placeholder="/" wire:model.blur="base_directory" label="Base Directory"helper="Directory to use as root. Useful for monorepos." />- <x-forms.input placeholder="/docker-compose.yaml" id="docker_compose_location"+ <x-forms.input placeholder="/docker-compose.yaml" wire:model.blur="docker_compose_location"label="Docker Compose Location"helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($base_directory . $docker_compose_location, '/') }}</span>" />Compose file location in your repository:<span