mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore(version): bump version
This commit is contained in:
@@ -49,7 +49,6 @@ export const deploy = async (job: DeployJob) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
if (job.applicationType === "application") {
|
if (job.applicationType === "application") {
|
||||||
await updateApplicationStatus(job.applicationId, "error");
|
await updateApplicationStatus(job.applicationId, "error");
|
||||||
} else if (job.applicationType === "compose") {
|
} else if (job.applicationType === "compose") {
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ export const ShowDeployment = ({ logPath, open, onClose, serverId }: Props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ws.onclose = () => {
|
ws.onclose = () => {
|
||||||
console.log("WebSocket connection closed");
|
|
||||||
wsRef.current = null; // Clear reference on close
|
wsRef.current = null; // Clear reference on close
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ export const ShowDeploymentCompose = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
ws.onclose = () => {
|
ws.onclose = () => {
|
||||||
console.log("WebSocket connection closed");
|
|
||||||
wsRef.current = null;
|
wsRef.current = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ export const DockerLogsId: React.FC<Props> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wsRef.current) {
|
if (wsRef.current) {
|
||||||
console.log(wsRef.current);
|
|
||||||
if (wsRef.current.readyState === WebSocket.OPEN) {
|
if (wsRef.current.readyState === WebSocket.OPEN) {
|
||||||
wsRef.current.close();
|
wsRef.current.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,10 @@ export const TerminalModal = ({ children, serverId }: Props) => {
|
|||||||
{children}
|
{children}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent className="max-h-screen overflow-y-auto sm:max-w-7xl">
|
<DialogContent
|
||||||
|
className="max-h-screen overflow-y-auto sm:max-w-7xl"
|
||||||
|
onEscapeKeyDown={(event) => event.preventDefault()}
|
||||||
|
>
|
||||||
<DialogHeader className="flex flex-col gap-1">
|
<DialogHeader className="flex flex-col gap-1">
|
||||||
<DialogTitle>Terminal ({data?.name})</DialogTitle>
|
<DialogTitle>Terminal ({data?.name})</DialogTitle>
|
||||||
<DialogDescription>Easy way to access the server</DialogDescription>
|
<DialogDescription>Easy way to access the server</DialogDescription>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.10.4",
|
"version": "v0.10.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -20,10 +20,8 @@ export const schedule = async (job: QueueJob) => {
|
|||||||
body: JSON.stringify(job),
|
body: JSON.stringify(job),
|
||||||
});
|
});
|
||||||
const data = await result.json();
|
const data = await result.json();
|
||||||
console.log(data);
|
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -39,10 +37,8 @@ export const removeJob = async (job: QueueJob) => {
|
|||||||
body: JSON.stringify(job),
|
body: JSON.stringify(job),
|
||||||
});
|
});
|
||||||
const data = await result.json();
|
const data = await result.json();
|
||||||
console.log(data);
|
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -58,10 +54,8 @@ export const updateJob = async (job: QueueJob) => {
|
|||||||
body: JSON.stringify(job),
|
body: JSON.stringify(job),
|
||||||
});
|
});
|
||||||
const data = await result.json();
|
const data = await result.json();
|
||||||
console.log(data);
|
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,10 +18,8 @@ export const deploy = async (jobData: DeploymentJob) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const data = await result.json();
|
const data = await result.json();
|
||||||
console.log(data);
|
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -62,9 +62,6 @@ export const setupDockerContainerTerminalWebSocketServer = (
|
|||||||
|
|
||||||
stream
|
stream
|
||||||
.on("close", (code: number, signal: string) => {
|
.on("close", (code: number, signal: string) => {
|
||||||
console.log(
|
|
||||||
`Stream :: close :: code: ${code}, signal: ${signal}`,
|
|
||||||
);
|
|
||||||
ws.send(`\nContainer closed with code: ${code}\n`);
|
ws.send(`\nContainer closed with code: ${code}\n`);
|
||||||
conn.end();
|
conn.end();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ export const createRedirect = async (
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
code: "BAD_REQUEST",
|
code: "BAD_REQUEST",
|
||||||
message: "Error to create this redirect",
|
message: "Error to create this redirect",
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ export const createSecurity = async (
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
code: "BAD_REQUEST",
|
code: "BAD_REQUEST",
|
||||||
message: "Error to create this security",
|
message: "Error to create this security",
|
||||||
|
|||||||
@@ -35,9 +35,15 @@ export const generateHash = (projectName: string, quantity = 3): string => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const generatePassword = (quantity = 16): string => {
|
export const generatePassword = (quantity = 16): string => {
|
||||||
return randomBytes(Math.ceil(quantity / 2))
|
const characters =
|
||||||
.toString("hex")
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||||
.slice(0, quantity);
|
let password = "";
|
||||||
|
for (let i = 0; i < quantity; i++) {
|
||||||
|
password += characters.charAt(
|
||||||
|
Math.floor(Math.random() * characters.length),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return password;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const generateBase64 = (bytes = 32): string => {
|
export const generateBase64 = (bytes = 32): string => {
|
||||||
|
|||||||
@@ -188,7 +188,6 @@ export const getCustomGitCloneCommand = async (
|
|||||||
command.push(`echo "Cloned Custom Git ${customGitUrl}: ✅" >> ${logPath};`);
|
command.push(`echo "Cloned Custom Git ${customGitUrl}: ✅" >> ${logPath};`);
|
||||||
return command.join("\n");
|
return command.join("\n");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ export const refreshGitlabToken = async (gitlabProviderId: string) => {
|
|||||||
|
|
||||||
const expiresAt = Math.floor(Date.now() / 1000) + data.expires_in;
|
const expiresAt = Math.floor(Date.now() / 1000) + data.expires_in;
|
||||||
|
|
||||||
console.log("Refreshed token");
|
|
||||||
|
|
||||||
await updateGitlab(gitlabProviderId, {
|
await updateGitlab(gitlabProviderId, {
|
||||||
accessToken: data.access_token,
|
accessToken: data.access_token,
|
||||||
refreshToken: data.refresh_token,
|
refreshToken: data.refresh_token,
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ export const setupDockerContainerLogsWebSocketServer = (
|
|||||||
}
|
}
|
||||||
stream
|
stream
|
||||||
.on("close", () => {
|
.on("close", () => {
|
||||||
console.log("Connection closed ✅");
|
|
||||||
client.end();
|
client.end();
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -63,9 +63,6 @@ export const setupDockerContainerTerminalWebSocketServer = (
|
|||||||
|
|
||||||
stream
|
stream
|
||||||
.on("close", (code: number, signal: string) => {
|
.on("close", (code: number, signal: string) => {
|
||||||
console.log(
|
|
||||||
`Stream :: close :: code: ${code}, signal: ${signal}`,
|
|
||||||
);
|
|
||||||
ws.send(`\nContainer closed with code: ${code}\n`);
|
ws.send(`\nContainer closed with code: ${code}\n`);
|
||||||
conn.end();
|
conn.end();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ export const setupDeploymentLogsWebSocketServer = (
|
|||||||
const { user, session } = await validateWebSocketRequest(req);
|
const { user, session } = await validateWebSocketRequest(req);
|
||||||
|
|
||||||
if (!logPath) {
|
if (!logPath) {
|
||||||
console.log("logPath no provided");
|
|
||||||
ws.close(4000, "logPath no provided");
|
ws.close(4000, "logPath no provided");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -63,7 +62,6 @@ export const setupDeploymentLogsWebSocketServer = (
|
|||||||
}
|
}
|
||||||
stream
|
stream
|
||||||
.on("close", () => {
|
.on("close", () => {
|
||||||
console.log("Connection closed ✅");
|
|
||||||
client.end();
|
client.end();
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user