Environment Variables

{{ $view === 'normal' ? 'Developer view' : 'Normal view (required to set variables at build time)' }}
Environment variables (secrets) for this resource.
@if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose')
@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.
@php $requiredEmptyVars = $resource->environment_variables->filter(function ($env) { return $env->is_required && empty($env->value); }); $otherVars = $resource->environment_variables->diff($requiredEmptyVars); @endphp @forelse ($requiredEmptyVars->merge($otherVars) 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 ($resource->environment_variables_preview as $env) @endforeach --}} @endif @else
@if ($showPreview) @endif Save All Environment Variables
@endif