mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +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 outputPath = join(COMPOSE_PATH, appName, "code");
|
||||
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) => {
|
||||
|
||||
Reference in New Issue
Block a user