Merge pull request #1275 from Dokploy/canary

🚀 Release v0.18.1
This commit is contained in:
Mauricio Siu
2025-02-02 22:19:56 -06:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "dokploy",
"version": "v0.18.0",
"version": "v0.18.1",
"private": true,
"license": "Apache-2.0",
"type": "module",

View File

@@ -154,7 +154,6 @@ const sanitizeCommand = (command: string) => {
export const createCommand = (compose: ComposeNested) => {
const { composeType, appName, sourceType } = compose;
if (compose.command) {
return `${sanitizeCommand(compose.command)}`;
}
@@ -163,7 +162,9 @@ export const createCommand = (compose: ComposeNested) => {
sourceType === "raw" ? "docker-compose.yml" : compose.composePath;
let command = "";
if (composeType === "stack") {
if (composeType === "docker-compose") {
command = `compose -p ${appName} -f ${path} up -d --build --remove-orphans`;
} else if (composeType === "stack") {
command = `stack deploy -c ${path} ${appName} --prune`;
}