mirror of https://github.com/portainer/portainer
fix(api): use the folder of the stackfile as working dir when deploying a stack (#1869)
parent
2327d696e0
commit
6360e6a20b
|
@ -81,7 +81,8 @@ func (manager *StackManager) Deploy(stack *portainer.Stack, prune bool, endpoint
|
||||||
env = append(env, envvar.Name+"="+envvar.Value)
|
env = append(env, envvar.Name+"="+envvar.Value)
|
||||||
}
|
}
|
||||||
|
|
||||||
return runCommandAndCaptureStdErr(command, args, env, stack.ProjectPath)
|
stackFolder := path.Dir(stackFilePath)
|
||||||
|
return runCommandAndCaptureStdErr(command, args, env, stackFolder)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove executes the docker stack rm command.
|
// Remove executes the docker stack rm command.
|
||||||
|
|
Loading…
Reference in New Issue