refactor(multi-server): adapt paths on server and in dokploy ui

This commit is contained in:
Mauricio Siu
2024-09-16 23:49:24 -06:00
parent c84d39a20f
commit 9b312cd9d7
43 changed files with 255 additions and 159 deletions
@@ -22,7 +22,7 @@ export const ShowDeployment = ({ logPath, open, onClose, serverId }: Props) => {
const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
const wsUrl = `${protocol}//${window.location.host}/listen-deployment?logPath=${logPath}&serverId=${serverId}`;
const wsUrl = `${protocol}//${window.location.host}/listen-deployment?logPath=${logPath}${serverId ? `&serverId=${serverId}` : ""}`;
const ws = new WebSocket(wsUrl);
ws.onmessage = (e) => {