fix: 解决 node.js 运行环境网站第一次创建失败的问题 (#2459)

pull/2462/head
zhengkunwang 2023-10-08 04:02:23 -05:00 committed by GitHub
parent 71b0deddb6
commit 0dda4411da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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
}