2024-01-07 15:23:41 +00:00
< div >
2024-06-07 09:01:10 +00:00
< x - slot : title >
2024-09-13 13:18:00 +00:00
Terminal | Coolify
2024-06-07 09:01:10 +00:00
</ x - slot >
2024-09-13 13:18:00 +00:00
< h1 > Terminal </ h1 >
2024-09-16 09:25:20 +00:00
< div class = " flex gap-2 items-end subtitle " >
< div > Execute commands on your servers and containers without leaving the browser .</ div >
< x - helper
helper = " If you're having trouble connecting to your server, make sure that the port is open.<br><br><a class='underline' href='https://coolify.io/docs/knowledge-base/server/firewall/#terminal' target='_blank'>Documentation</a> " ></ x - helper >
</ div >
2024-11-12 08:52:22 +00:00
< div x - init = " $wire .loadContainers() " >
@ if ( $isLoadingContainers )
< div class = " pt-1 " >
< x - loading text = " Loading servers and containers... " />
</ div >
@ else
2025-05-29 12:09:05 +00:00
@ if ( $servers -> count () > 0 )
< form class = " flex flex-col gap-2 justify-center xl:items-end xl:flex-row "
wire : submit = " $dispatchSelf ('connectToContainer') " >
< x - forms . select id = " server " required wire : model . live = " selected_uuid " >
@ foreach ( $servers as $server )
@ if ( $loop -> first )
< option disabled value = " default " > Select a server or container </ option >
2024-11-12 08:52:22 +00:00
@ endif
2025-05-29 12:09:05 +00:00
< option value = " { { $server->uuid }} " > {{ $server -> name }} </ option >
@ foreach ( $containers as $container )
@ if ( $container [ 'server_uuid' ] == $server -> uuid )
< option value = " { { $container['uuid'] }} " >
{{ $server -> name }} -> {{ $container [ 'name' ] }}
</ option >
@ endif
@ endforeach
2024-11-12 08:52:22 +00:00
@ endforeach
2025-05-29 12:09:05 +00:00
</ x - forms . select >
< x - forms . button type = " submit " > Connect </ x - forms . button >
</ form >
@ else
< div > No servers with terminal access found .</ div >
@ endif
2024-11-12 08:52:22 +00:00
@ endif
2024-11-14 11:33:59 +00:00
< livewire : project . shared . terminal />
2024-09-17 10:29:36 +00:00
</ div >
2024-01-07 15:23:41 +00:00
</ div >