From f0d5aca6576713ca178f59905bdad0766b5e2af2 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:38:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E9=87=8D=E5=BB=BA=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3967)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_utils.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index 9b14ba088..f53448acb 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -903,27 +903,11 @@ func rebuildApp(appInstall model.AppInstall) error { _ = handleErr(appInstall, err, out) return } - fileOp := files.NewFileOp() - envByte, err := fileOp.GetContent(appInstall.GetEnvPath()) + out, err = compose.Up(appInstall.GetComposePath()) if err != nil { _ = handleErr(appInstall, err, out) return } - composeByte, err := fileOp.GetContent(dockerComposePath) - if err != nil { - _ = handleErr(appInstall, err, out) - return - } - - project, err := composeV2.GetComposeProject(appInstall.Name, appInstall.GetPath(), composeByte, envByte, true) - if err != nil { - _ = handleErr(appInstall, err, out) - return - } - if err = composeV2.UpComposeProject(project); err != nil { - _ = handleErr(appInstall, err, out) - return - } appInstall.Status = constant.Running _ = appInstallRepo.Save(context.Background(), &appInstall)