mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决 node.js 运行环境网站第一次创建失败的问题 (#2459)
This commit is contained in:
parent
71b0deddb6
commit
0dda4411da
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user