mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
feat: 修改应用重建逻辑 (#3953)
This commit is contained in:
parent
1b47e8dd63
commit
e427ccf70c
@ -903,18 +903,19 @@ func rebuildApp(appInstall model.AppInstall) error {
|
|||||||
_ = handleErr(appInstall, err, out)
|
_ = handleErr(appInstall, err, out)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
out, err = compose.Up(dockerComposePath)
|
fileOp := files.NewFileOp()
|
||||||
|
envByte, err := fileOp.GetContent(appInstall.GetEnvPath())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = handleErr(appInstall, err, out)
|
_ = handleErr(appInstall, err, out)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
envByte, err := files.NewFileOp().GetContent(appInstall.GetEnvPath())
|
composeByte, err := fileOp.GetContent(dockerComposePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = handleErr(appInstall, err, out)
|
_ = handleErr(appInstall, err, out)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
project, err := composeV2.GetComposeProject(appInstall.Name, appInstall.GetPath(), []byte(appInstall.DockerCompose), envByte, true)
|
project, err := composeV2.GetComposeProject(appInstall.Name, appInstall.GetPath(), composeByte, envByte, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = handleErr(appInstall, err, out)
|
_ = handleErr(appInstall, err, out)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user