From 2a01566c34ec5227626e3e17a610afb2b2f568b2 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Tue, 29 Oct 2024 02:39:33 -0600 Subject: [PATCH] refactor(dokploy): update status --- apps/api/tsconfig.json | 7 ++++++- apps/dokploy/server/utils/deploy.ts | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json index 3c0b02bc0..e47c6267d 100644 --- a/apps/api/tsconfig.json +++ b/apps/api/tsconfig.json @@ -7,7 +7,12 @@ "skipLibCheck": true, "outDir": "dist", "jsx": "react-jsx", - "jsxImportSource": "hono/jsx" + "jsxImportSource": "hono/jsx", + "baseUrl": ".", + "paths": { + "@/*": ["./*"], + "@dokploy/server/*": ["../../packages/server/src/*"] + } }, "exclude": ["node_modules", "dist"] } diff --git a/apps/dokploy/server/utils/deploy.ts b/apps/dokploy/server/utils/deploy.ts index eced60b45..02eb1b822 100644 --- a/apps/dokploy/server/utils/deploy.ts +++ b/apps/dokploy/server/utils/deploy.ts @@ -18,6 +18,11 @@ export const deploy = async (jobData: DeploymentJob) => { }, body: JSON.stringify(jobData), }); + + console.log("Status:", result.status); + console.log("Content-Type:", result.headers.get("content-type")); + console.log("Body:", await result.text()); + console.log(result); const data = await result.json(); console.log(data); return data;