mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 14:45:42 +02:00
feat: add debug logging for resource name and command in Docker resource type determination
This commit is contained in:
@@ -253,6 +253,7 @@ export const getDockerResourceType = async (
|
||||
resourceName: string,
|
||||
serverId?: string,
|
||||
) => {
|
||||
console.log("resourceName", resourceName);
|
||||
let result = "";
|
||||
const command = `
|
||||
RESOURCE_NAME="${resourceName}"
|
||||
@@ -270,6 +271,8 @@ export const getDockerResourceType = async (
|
||||
exit 0
|
||||
`;
|
||||
|
||||
console.log("command", command);
|
||||
|
||||
if (serverId) {
|
||||
const { stdout } = await execAsyncRemote(serverId, command);
|
||||
result = stdout.trim();
|
||||
|
||||
Reference in New Issue
Block a user