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 @if (data_get($resource, 'build_pack') !== 'dockercompose')
@can('manageEnvironment', $resource) @else @endcan
@endif
@endif @if ($resource->type() === 'service' || $resource?->build_pack === 'dockercompose')
Hardcoded variables are not shown here.
{{--
If you would like to add a variable, you must add it to your compose file.
--}} @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() === 'application' && $resource->environment_variables_preview->count() > 0 && $showPreview)

Preview Deployments Environment Variables

Environment (secrets) variables for Preview Deployments.
@foreach ($this->environmentVariablesPreview as $env) @endforeach @endif @else
@can('manageEnvironment', $resource) @if ($showPreview) @endif Save All Environment Variables @else @if ($showPreview) @endif @endcan
@endif