Servers

Server related configurations.
Primary Server
@if (str($resource->realStatus())->startsWith('running'))
@elseif (str($resource->realStatus())->startsWith('exited'))
@endif
Server: {{ data_get($resource, 'destination.server.name') }}
Network: {{ data_get($resource, 'destination.network') }}
@if ($resource?->additional_networks?->count() > 0) Deploy @if (str($resource->realStatus())->startsWith('running')) Stop @endif @endif
@if ($resource?->additional_networks?->count() > 0) @foreach ($resource->additional_networks as $destination)
@if (str(data_get($destination, 'pivot.status'))->startsWith('running'))
@elseif (str(data_get($destination, 'pivot.status'))->startsWith('exited'))
@endif
Server: {{ data_get($destination, 'server.name') }}
Network: {{ data_get($destination, 'network') }}
Deploy Promote to Primary @if (data_get_str($destination, 'pivot.status')->startsWith('running')) Stop @endif This will stop the running application in this server and remove it as a deployment destination.

Please think again.
@endforeach @endif
@if ($resource->getMorphClass() === 'App\Models\Application') @if (count($networks) > 0)

Choose another server

(experimental)
@foreach ($networks as $network)
Server: {{ data_get($network, 'server.name') }}
Network: {{ data_get($network, 'name') }}
@endforeach
@else
No additional servers available to attach.
@endif @endif