fix: compose file location
This commit is contained in:
@@ -196,7 +196,7 @@ import * as buildpacks from '../lib/buildPacks';
|
|||||||
await executeCommand({
|
await executeCommand({
|
||||||
debug: true,
|
debug: true,
|
||||||
dockerId: destinationDocker.id,
|
dockerId: destinationDocker.id,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -726,7 +726,7 @@ import * as buildpacks from '../lib/buildPacks';
|
|||||||
await executeCommand({
|
await executeCommand({
|
||||||
debug,
|
debug,
|
||||||
dockerId: destinationDocker.id,
|
dockerId: destinationDocker.id,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@@ -670,7 +670,7 @@ export async function restartApplication(
|
|||||||
|
|
||||||
await executeCommand({
|
await executeCommand({
|
||||||
dockerId,
|
dockerId,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
return reply.code(201).send();
|
return reply.code(201).send();
|
||||||
}
|
}
|
||||||
@@ -1451,7 +1451,7 @@ export async function restartPreview(
|
|||||||
await executeCommand({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });
|
await executeCommand({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });
|
||||||
await executeCommand({
|
await executeCommand({
|
||||||
dockerId,
|
dockerId,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
return reply.code(201).send();
|
return reply.code(201).send();
|
||||||
}
|
}
|
||||||
|
@@ -195,7 +195,7 @@ import { defaultComposeConfiguration } from '../lib/docker';
|
|||||||
await executeCommand({
|
await executeCommand({
|
||||||
debug: true,
|
debug: true,
|
||||||
dockerId: destinationDocker.id,
|
dockerId: destinationDocker.id,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -765,7 +765,7 @@ import { defaultComposeConfiguration } from '../lib/docker';
|
|||||||
await executeCommand({
|
await executeCommand({
|
||||||
debug,
|
debug,
|
||||||
dockerId: destinationDocker.id,
|
dockerId: destinationDocker.id,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@@ -177,7 +177,7 @@ export const applicationsRouter = router({
|
|||||||
await executeCommand({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });
|
await executeCommand({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });
|
||||||
await executeCommand({
|
await executeCommand({
|
||||||
dockerId,
|
dockerId,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
@@ -1311,7 +1311,7 @@ export const applicationsRouter = router({
|
|||||||
|
|
||||||
await executeCommand({
|
await executeCommand({
|
||||||
dockerId,
|
dockerId,
|
||||||
command: `docker compose --project-directory ${workdir} up -d`
|
command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
Reference in New Issue
Block a user