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:
Mauricio Siu 2025-03-15 18:37:36 -06:00 committed by GitHub
commit 4d4de1424e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -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 {

View File

@ -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);
} }