mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
fix: 解决 node.js 运行环境网站第一次创建失败的问题 (#2459)
This commit is contained in:
parent
71b0deddb6
commit
0dda4411da
@ -321,6 +321,7 @@ func (r *RuntimeService) Update(req request.RuntimeUpdate) error {
|
|||||||
Version: req.Version,
|
Version: req.Version,
|
||||||
NodeConfig: request.NodeConfig{
|
NodeConfig: request.NodeConfig{
|
||||||
Port: req.Port,
|
Port: req.Port,
|
||||||
|
Install: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
composeContent, envContent, _, err := handleParams(create, projectDir)
|
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 {
|
if err := createIndexFile(website, runtime); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user