fix: compose magic
This commit is contained in:
@@ -31,8 +31,6 @@ class Index extends Component
|
||||
$this->service = Service::whereUuid($this->parameters['service_uuid'])->firstOrFail();
|
||||
$this->applications = $this->service->applications->sort();
|
||||
$this->databases = $this->service->databases->sort();
|
||||
ray($this->applications);
|
||||
ray($this->databases);
|
||||
}
|
||||
public function saveCompose($raw)
|
||||
{
|
||||
|
||||
@@ -386,7 +386,10 @@ class Service extends BaseModel
|
||||
if ($key->startsWith('SERVICE_FQDN')) {
|
||||
if (is_null(data_get($savedService, 'fqdn'))) {
|
||||
$fqdn = generateFqdn($this->server, $containerName);
|
||||
if (substr_count($key->value(), '_') === 2 && $key->contains("=")) {
|
||||
if (substr_count($key->value(), '_') === 2) {
|
||||
if (is_null($value)) {
|
||||
$value = Str::of('/');
|
||||
}
|
||||
$path = $value->value();
|
||||
if ($generatedServiceFQDNS->count() > 0) {
|
||||
$alreadyGenerated = $generatedServiceFQDNS->has($key->value());
|
||||
|
||||
Reference in New Issue
Block a user