mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-04 11:12:16 +00:00
fix(raw): add raw compose remote
This commit is contained in:
@@ -32,7 +32,13 @@ export const getCreateComposeFileCommand = (compose: Compose) => {
|
|||||||
const { appName, composeFile } = compose;
|
const { appName, composeFile } = compose;
|
||||||
const outputPath = join(COMPOSE_PATH, appName, "code");
|
const outputPath = join(COMPOSE_PATH, appName, "code");
|
||||||
const filePath = join(outputPath, "docker-compose.yml");
|
const filePath = join(outputPath, "docker-compose.yml");
|
||||||
return `echo "${composeFile}" > ${filePath}`;
|
const command = [];
|
||||||
|
command.push(`rm -rf ${outputPath};`);
|
||||||
|
command.push(`mkdir -p ${outputPath};`);
|
||||||
|
command.push(
|
||||||
|
`printf '%s' '${composeFile.replace(/'/g, "'\\''")}' > ${filePath};`,
|
||||||
|
);
|
||||||
|
return command.join("\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
export const createComposeFileRaw = async (compose: Compose) => {
|
export const createComposeFileRaw = async (compose: Compose) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user