mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-16 02:15:32 +00:00
Run proxy restart as background job with real-time logs (#7475)
This commit is contained in:
6 files changed
+378
-18
No files matched your search
@@ -2,6 +2,13 @@
|
||||
<x-slide-over @startproxy.window="slideOverOpen = true" fullScreen closeWithX>
|
||||
<x-slot:title>Proxy Startup Logs</x-slot:title>
|
||||
<x-slot:content>
|
||||
@if ($server->id === 0)
|
||||
<div class="mb-4 p-3 text-sm bg-warning/10 border border-warning/30 rounded-lg text-warning">
|
||||
<span class="font-semibold">Note:</span> This is the localhost server where Coolify runs.
|
||||
During proxy restart, the connection may be temporarily lost.
|
||||
If logs stop updating, please refresh the browser after a few minutes.
|
||||
</div>
|
||||
@endif
|
||||
<livewire:activity-monitor header="Logs" fullHeight />
|
||||
</x-slot:content>
|
||||
</x-slide-over>
|
||||
@@ -174,6 +181,7 @@
|
||||
}
|
||||
});
|
||||
$wire.$on('restartEvent', () => {
|
||||
if ($wire.restartInitiated) return;
|
||||
window.dispatchEvent(new CustomEvent('startproxy'))
|
||||
$wire.$call('restart');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user