Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

debug

Andras Bacsaie47395bab7f5
diff --git a/TODO.md b/TODO.md
index 0e7240c0c0..12e6d72ac6 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1 +1,2 @@
-- RDE Application DNS check not working
\ No newline at end of file
+- RDE Application DNS check not working
+- Check DNS configurations for app/service/coolify with RDE and local engines
\ No newline at end of file
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts
index aac716a589..2a51dbe465 100644
--- a/apps/api/src/lib/common.ts
+++ b/apps/api/src/lib/common.ts
@@ -512,7 +512,7 @@ export async function executeDockerCmd({ dockerId, command }: { dockerId: string
await createRemoteEngineConfiguration(dockerId)
}
return await asyncExecShell(
- `DOCKER_HOST="${host}" ${command}`
+ `DOCKER_BUILDKIT=1 DOCKER_HOST="${host}" ${command}`
);
}
export async function startTraefikProxy(id: string): Promise<void> {
diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.ts
index 5896422cac..42b7716019 100644
--- a/apps/api/src/routes/api/v1/applications/handlers.ts
+++ b/apps/api/src/routes/api/v1/applications/handlers.ts
@@ -177,6 +177,7 @@ export async function getApplicationFromDB(id: string, teamId: string) {
}
export async function getApplicationFromDBWebhook(projectId: number, branch: string) {
try {
+ console.log({ projectId, branch })
let application = await prisma.application.findFirst({
where: { projectId, branch, settings: { autodeploy: true } },
include: {
@@ -187,6 +188,7 @@ export async function getApplicationFromDBWebhook(projectId: number, branch: str
persistentStorage: true
}
});
+ console.log({ application })
if (!application) {
throw { status: 500, message: 'Application not configured.' }
}
diff --git a/apps/api/src/routes/webhooks/github/handlers.ts b/apps/api/src/routes/webhooks/github/handlers.ts
index b680a2848f..cd61562360 100644
--- a/apps/api/src/routes/webhooks/github/handlers.ts
+++ b/apps/api/src/routes/webhooks/github/handlers.ts
@@ -86,7 +86,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi
projectId = repository.id;
branch = body.pull_request.head.ref.split('/')[2];
}
-
+ console.log({repository, projectId, branch})
const applicationFound = await getApplicationFromDBWebhook(projectId, branch);
if (applicationFound) {
const webhookSecret = applicationFound.gitSource.githubApp.webhookSecret || null;