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 && data_get($resource, 'build_pack') !== 'dockercompose')

Additional Server(s)

@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
@endforeach @endif
@if ($resource->getMorphClass() === 'App\Models\Application' && data_get($resource, 'build_pack') !== 'dockercompose')
@if ($resource->persistentStorages()->count() > 0)

Add another server

Cannot add additional servers

This application has persistent storage volumes configured. Applications with persistent storage cannot be deployed to multiple servers as the storage would not be accessible across different servers.

@elseif (count($networks) > 0)

Add another server

@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