diff --git a/TODO.md b/TODO.md index 0e7240c0c..12e6d72ac 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 aac716a58..2a51dbe46 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 { diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.ts index 5896422ca..42b771601 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 b680a2848..cd6156236 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): 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;