coolify/resources/views/livewire/project/application/deploy.blade.php

41 lines
2.0 KiB
PHP
Raw Normal View History

<div>
<button class="bg-red-500" @confirm.window="$wire.delete()"
x-on:click="toggleConfirmModal('Are you sure you would like to delete this application?')">
Delete</button>
2023-04-12 15:42:01 +02:00
@if ($application->status === 'running')
2023-04-19 14:28:39 +02:00
<button wire:click='start'>Restart</button>
<button wire:click='forceRebuild'>Force Rebuild</button>
2023-04-12 15:42:01 +02:00
<button wire:click='stop'>Stop</button>
@else
2023-04-14 11:24:58 +02:00
<button wire:click='start'>Start</button>
2023-04-19 14:28:39 +02:00
<button wire:click='forceRebuild'>Start (no cache)</button>
2023-04-12 15:42:01 +02:00
@endif
2023-04-14 13:18:55 +02:00
<button wire:click='kill'>Kill</button>
2023-04-25 14:57:02 +02:00
<span wire:poll.5000ms='pollingStatus'>
2023-04-19 12:42:15 +02:00
@if ($application->status === 'running')
2023-04-19 14:28:39 +02:00
@if (!data_get($application, 'settings.is_bot') && data_get($application, 'fqdn'))
2023-04-24 13:25:02 +02:00
<a target="_blank" href="{{ data_get($application, 'fqdn') }}">Open URL</a>
@endif
2023-04-26 13:01:09 +02:00
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
2023-04-24 13:25:02 +02:00
@if (env('APP_ENV') === 'local')
2023-04-26 13:01:09 +02:00
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
{{ explode(':', $port)[0] }}</a>
2023-04-24 13:25:02 +02:00
@else
<a target="_blank"
href="http://{{ $application->destination->server->ip }}:{{ $port }}">Open
{{ $port }}</a>
@endif
@endforeach
2023-04-19 14:28:39 +02:00
@endif
2023-04-25 14:57:02 +02:00
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
<span class="text-green-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
2023-04-19 12:42:15 +02:00
@else
2023-04-25 14:57:02 +02:00
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
<span class="text-red-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
2023-04-19 12:42:15 +02:00
@endif
2023-04-25 14:57:02 +02:00
2023-04-19 12:42:15 +02:00
</span>
</div>