refactor: Update Docker Compose location handling in PublicGitRepository

This commit is contained in:
Andras Bacsai
2024-09-04 14:09:55 +02:00
parent 5799e6d8b0
commit a3a61dbe55
2 changed files with 12 additions and 2 deletions

View File

@@ -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') {