mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-17 01:15:19 +00:00
Merge branch 'Dokploy:canary' into canary
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.23.5",
|
"version": "v0.23.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -538,9 +538,11 @@ const removeLastTenDeployments = async (
|
|||||||
await removeRollbackById(oldDeployment.rollbackId);
|
await removeRollbackById(oldDeployment.rollbackId);
|
||||||
}
|
}
|
||||||
|
|
||||||
command += `
|
if (logPath !== ".") {
|
||||||
rm -rf ${logPath};
|
command += `
|
||||||
`;
|
rm -rf ${logPath};
|
||||||
|
`;
|
||||||
|
}
|
||||||
await removeDeployment(oldDeployment.deploymentId);
|
await removeDeployment(oldDeployment.deploymentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -551,7 +553,11 @@ const removeLastTenDeployments = async (
|
|||||||
await removeRollbackById(oldDeployment.rollbackId);
|
await removeRollbackById(oldDeployment.rollbackId);
|
||||||
}
|
}
|
||||||
const logPath = path.join(oldDeployment.logPath);
|
const logPath = path.join(oldDeployment.logPath);
|
||||||
if (existsSync(logPath) && !oldDeployment.errorMessage) {
|
if (
|
||||||
|
existsSync(logPath) &&
|
||||||
|
!oldDeployment.errorMessage &&
|
||||||
|
logPath !== "."
|
||||||
|
) {
|
||||||
await fsPromises.unlink(logPath);
|
await fsPromises.unlink(logPath);
|
||||||
}
|
}
|
||||||
await removeDeployment(oldDeployment.deploymentId);
|
await removeDeployment(oldDeployment.deploymentId);
|
||||||
|
|||||||
Reference in New Issue
Block a user