static hosting

This commit is contained in:
Andras Bacsai
2023-04-26 13:01:09 +02:00
parent cc1c08786f
commit f4210e39f2
14 changed files with 90 additions and 28 deletions

View File

@@ -17,11 +17,11 @@
<a target="_blank" href="{{ data_get($application, 'fqdn') }}">Open URL</a>
@endif
@if (data_get($application, 'ports_exposes_array'))
@foreach ($application->ports_exposes_array as $port)
@if (data_get($application, 'ports_mappings_array'))
@foreach ($application->ports_mappings_array as $port)
@if (env('APP_ENV') === 'local')
<a target="_blank" href="http://localhost:{{ $port }}">Open
{{ $port }}</a>
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
{{ explode(':', $port)[0] }}</a>
@else
<a target="_blank"
href="http://{{ $application->destination->server->ip }}:{{ $port }}">Open