fix: 解决删除应用失败的BUG
This commit is contained in:

committed by
zhengkunwang223

parent
3f02358708
commit
9b5ea3f317
@@ -13,6 +13,12 @@ func Up(filePath string) (string, error) {
|
||||
}
|
||||
|
||||
func Down(filePath string) (string, error) {
|
||||
cmd := exec.Command("docker-compose", "-f", filePath, "down")
|
||||
stdout, err := cmd.CombinedOutput()
|
||||
return string(stdout), err
|
||||
}
|
||||
|
||||
func Stop(filePath string) (string, error) {
|
||||
cmd := exec.Command("docker-compose", "-f", filePath, "stop")
|
||||
stdout, err := cmd.CombinedOutput()
|
||||
return string(stdout), err
|
||||
|
Reference in New Issue
Block a user