@if ($resource instanceof \App\Models\Service && $missingRequiredEnvironmentVariableCount > 0) @php $environmentVariablesUrl = route('project.service.environment-variables', [ 'project_uuid' => $resource->environment->project->uuid, 'environment_uuid' => $resource->environment->uuid, 'service_uuid' => $resource->uuid, ]); @endphp {{ $missingRequiredEnvironmentVariableCount === 1 ? 'Required environment variable missing' : 'Required environment variables missing' }} {{ implode(', ', $missingRequiredEnvironmentVariableNames) }} must be set before this service can be deployed. Open environment variables @endif @if ($isConfigurationChanged && !is_null($resource->config_hash) && !$resource->isExited()) @php $compactStoragePrefix = "configuration-warning:{$resource->uuid}:"; $currentConfigurationHash = $resource instanceof \App\Models\Application ? $resource->deploymentConfigurationHash() : md5((string) $resource->config_hash); $compactStorageKey = $compactStoragePrefix.$currentConfigurationHash; @endphp
The latest configuration has not been applied @if (data_get($configurationDiff, 'count')) {{ data_get($configurationDiff, 'count') }} {{ data_get($configurationDiff, 'count') === 1 ? 'change' : 'changes' }} unapplied. @if (data_get($configurationDiff, 'requires_build')) Rebuild required. @else Redeploy to apply. @endif @else Redeploy to apply. @endif @if (data_get($configurationDiff, 'count')) @endif
@endif