debug
This commit is contained in:
parent
dd2a876a67
commit
e47395bab7
1
TODO.md
1
TODO.md
@ -1 +1,2 @@
|
||||
- RDE Application DNS check not working
|
||||
- Check DNS configurations for app/service/coolify with RDE and local engines
|
@ -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> {
|
||||
|
@ -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.' }
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user