mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1501 from Dokploy/1492-deploy-vs-rebuild-on-docker-compose-are-using-different-volumes
refactor: remove console log statements on WebSocket connection close…
This commit is contained in:
commit
4d4de1424e
@ -61,7 +61,6 @@ export const setupDeploymentLogsWebSocketServer = (
|
|||||||
}
|
}
|
||||||
stream
|
stream
|
||||||
.on("close", () => {
|
.on("close", () => {
|
||||||
console.log("Connection closed ✅");
|
|
||||||
client.end();
|
client.end();
|
||||||
ws.close();
|
ws.close();
|
||||||
})
|
})
|
||||||
@ -86,7 +85,6 @@ export const setupDeploymentLogsWebSocketServer = (
|
|||||||
});
|
});
|
||||||
|
|
||||||
ws.on("close", () => {
|
ws.on("close", () => {
|
||||||
console.log("Connection closed ✅, From WS");
|
|
||||||
client.end();
|
client.end();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -289,11 +289,11 @@ export const rebuildCompose = async ({
|
|||||||
// if (admin.cleanupCacheOnCompose) {
|
// if (admin.cleanupCacheOnCompose) {
|
||||||
// await cleanupFullDocker(compose?.serverId);
|
// await cleanupFullDocker(compose?.serverId);
|
||||||
// }
|
// }
|
||||||
if (compose.serverId) {
|
|
||||||
await getBuildComposeCommand(compose, deployment.logPath);
|
if (compose.sourceType === "raw") {
|
||||||
} else {
|
await createComposeFile(compose, deployment.logPath);
|
||||||
await buildCompose(compose, deployment.logPath);
|
|
||||||
}
|
}
|
||||||
|
await buildCompose(compose, deployment.logPath);
|
||||||
|
|
||||||
await updateDeploymentStatus(deployment.deploymentId, "done");
|
await updateDeploymentStatus(deployment.deploymentId, "done");
|
||||||
await updateCompose(composeId, {
|
await updateCompose(composeId, {
|
||||||
@ -433,6 +433,10 @@ export const rebuildRemoteCompose = async ({
|
|||||||
// if (admin.cleanupCacheOnCompose) {
|
// if (admin.cleanupCacheOnCompose) {
|
||||||
// await cleanupFullDocker(compose?.serverId);
|
// await cleanupFullDocker(compose?.serverId);
|
||||||
// }
|
// }
|
||||||
|
if (compose.sourceType === "raw") {
|
||||||
|
const command = getCreateComposeFileCommand(compose, deployment.logPath);
|
||||||
|
await execAsyncRemote(compose.serverId, command);
|
||||||
|
}
|
||||||
if (compose.serverId) {
|
if (compose.serverId) {
|
||||||
await getBuildComposeCommand(compose, deployment.logPath);
|
await getBuildComposeCommand(compose, deployment.logPath);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user