feat: 应用增加重建功能

This commit is contained in:
zhengkunwang223
2023-03-01 11:51:49 +08:00
committed by zhengkunwang223
parent 1ef26aa4eb
commit ff87cd5989
7 changed files with 127 additions and 101 deletions

View File

@@ -16,6 +16,11 @@ func Down(filePath string) (string, error) {
return stdout, err
}
func Start(filePath string) (string, error) {
stdout, err := cmd.Execf("docker-compose -f %s start", filePath)
return stdout, err
}
func Stop(filePath string) (string, error) {
stdout, err := cmd.Execf("docker-compose -f %s stop", filePath)
return stdout, err