@if (count($application->additional_servers) > 0) Preview deployments run on {{ $application->destination->server->name }}. @endif @if ($application->is_github_based()) @isset($rate_limit_remaining) {{ $rate_limit_remaining }} requests remaining @endisset @can('update', $application) Load pull requests @endcan
@forelse ($pull_requests as $pull_request)
#{{ data_get($pull_request, 'number') }}

{{ data_get($pull_request, 'title') }}

Open on GitHub
@can('update', $application) Configure @endcan @can('deploy', $application) Deploy preview @endcan
@empty @endforelse
@endif @if ($application->build_pack === 'dockerimage')
@can('deploy', $application) Deploy preview @endcan
@endif @forelse (data_get($application, 'previews') as $previewName => $preview) @php $previewStatus = str(data_get($preview, 'status')); $previewIsRunning = $previewStatus->startsWith('running'); $previewIsRestarting = $previewStatus->startsWith('restarting'); $previewIsStopped = $previewStatus->startsWith('exited'); @endphp
#{{ data_get($preview, 'pull_request_id') }}

Preview #{{ data_get($preview, 'pull_request_id') }}

@if ($previewIsRunning) @elseif ($previewIsRestarting) @else @endif
@if (!$previewIsStopped && filled(data_get($preview, 'fqdn'))) Open preview @endif @if (filled(data_get($preview, 'pull_request_html_url'))) Open pull request @endif @if (count($parameters) > 0) Deployment logs Application logs @endif
@can('deploy', $application) Rebuild {{ $previewIsStopped ? 'Deploy' : 'Redeploy' }} @endcan @if (!$previewIsStopped) @can('deploy', $application) Stop @endcan @endif @can('delete', $application) @endcan
@if ($application->build_pack === 'dockercompose') @if (collect(json_decode($preview->docker_compose_domains))->count() === 0)
@can('update', $application) Generate domain @endcan @else
@foreach (collect(json_decode($preview->docker_compose_domains)) as $serviceName => $service) @endforeach
@endif @else
@if ($application->build_pack === 'dockerimage') @endif @can('update', $application) Generate domain @endcan @endif
@empty @endforelse
The preview deployment domain is already used by another resource and may cause routing conflicts.
  • The preview deployment may not be accessible.
  • SSL certificates may not work correctly.
  • Requests may be routed unpredictably.