mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-28 06:28:47 +00: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,
|
resourceName: string,
|
||||||
serverId?: string,
|
serverId?: string,
|
||||||
) => {
|
) => {
|
||||||
|
console.log("resourceName", resourceName);
|
||||||
let result = "";
|
let result = "";
|
||||||
const command = `
|
const command = `
|
||||||
RESOURCE_NAME="${resourceName}"
|
RESOURCE_NAME="${resourceName}"
|
||||||
@@ -270,6 +271,8 @@ export const getDockerResourceType = async (
|
|||||||
exit 0
|
exit 0
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
console.log("command", command);
|
||||||
|
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
const { stdout } = await execAsyncRemote(serverId, command);
|
const { stdout } = await execAsyncRemote(serverId, command);
|
||||||
result = stdout.trim();
|
result = stdout.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user