diff --git a/backend/app/service/runtime.go b/backend/app/service/runtime.go index 85628a79c..b12a58221 100644 --- a/backend/app/service/runtime.go +++ b/backend/app/service/runtime.go @@ -320,7 +320,8 @@ func (r *RuntimeService) Update(req request.RuntimeUpdate) error { CodeDir: req.CodeDir, Version: req.Version, NodeConfig: request.NodeConfig{ - Port: req.Port, + Port: req.Port, + Install: true, }, } composeContent, envContent, _, err := handleParams(create, projectDir) diff --git a/backend/app/service/website_utils.go b/backend/app/service/website_utils.go index fff846003..a1591622b 100644 --- a/backend/app/service/website_utils.go +++ b/backend/app/service/website_utils.go @@ -154,7 +154,7 @@ func createWebsiteFolder(nginxInstall model.AppInstall, website *model.Website, } } } - if website.Type == constant.Static || website.Type == constant.Runtime { + if website.Type == constant.Static || (website.Type == constant.Runtime && runtime.Type == constant.RuntimePHP) { if err := createIndexFile(website, runtime); err != nil { return err }