Environment Variables

@can('manageEnvironment', $resource)
{{ $view === 'normal' ? 'Developer view' : 'Normal view' }} @endcan
Environment variables (secrets) for this resource.
@if ($resourceClass === 'App\Models\Application')
@if (data_get($resource, 'build_pack') !== 'dockercompose')
@can('manageEnvironment', $resource) @else @endcan
@endif
@can('manageEnvironment', $resource) @else @endcan
@endif
@if ($view === 'normal')

Production Environment Variables

Environment (secrets) variables for Production.
@forelse ($this->environmentVariables as $env) @empty
No environment variables found.
@endforelse @if (($resource->type() === 'service' || $resource?->build_pack === 'dockercompose') && $this->hardcodedEnvironmentVariables->isNotEmpty()) @foreach ($this->hardcodedEnvironmentVariables as $index => $env) @endforeach @endif @if ($resource->type() === 'application' && $resource->environment_variables_preview->count() > 0 && $showPreview)

Preview Deployments Environment Variables

Environment (secrets) variables for Preview Deployments.
@foreach ($this->environmentVariablesPreview as $env) @endforeach @if (($resource->type() === 'service' || $resource?->build_pack === 'dockercompose') && $this->hardcodedEnvironmentVariablesPreview->isNotEmpty()) @foreach ($this->hardcodedEnvironmentVariablesPreview as $index => $env) @endforeach @endif @endif @else
@can('manageEnvironment', $resource) Inline comments with space before # (e.g., KEY=value #comment) are stripped. @if ($showPreview) @endif Save All Environment Variables @else @if ($showPreview) @endif @endcan
@endif