mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor(api): remove deploy normal compose on the same dokploy server
This commit is contained in:
@@ -59,20 +59,6 @@ export const deploy = async (job: DeployJob) => {
|
|||||||
descriptionLog: job.descriptionLog,
|
descriptionLog: job.descriptionLog,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (job.type === "redeploy") {
|
|
||||||
await rebuildApplication({
|
|
||||||
applicationId: job.applicationId,
|
|
||||||
titleLog: job.titleLog,
|
|
||||||
descriptionLog: job.descriptionLog,
|
|
||||||
});
|
|
||||||
} else if (job.type === "deploy") {
|
|
||||||
await deployApplication({
|
|
||||||
applicationId: job.applicationId,
|
|
||||||
titleLog: job.titleLog,
|
|
||||||
descriptionLog: job.descriptionLog,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else if (job.applicationType === "compose") {
|
} else if (job.applicationType === "compose") {
|
||||||
await updateCompose(job.composeId, {
|
await updateCompose(job.composeId, {
|
||||||
@@ -93,20 +79,6 @@ export const deploy = async (job: DeployJob) => {
|
|||||||
descriptionLog: job.descriptionLog,
|
descriptionLog: job.descriptionLog,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (job.type === "deploy") {
|
|
||||||
await deployCompose({
|
|
||||||
composeId: job.composeId,
|
|
||||||
titleLog: job.titleLog,
|
|
||||||
descriptionLog: job.descriptionLog,
|
|
||||||
});
|
|
||||||
} else if (job.type === "redeploy") {
|
|
||||||
await rebuildCompose({
|
|
||||||
composeId: job.composeId,
|
|
||||||
titleLog: job.titleLog,
|
|
||||||
descriptionLog: job.descriptionLog,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user