feat: 创建运行环境网站增加默认网络创建 (#6807)

aliyun
zhengkunwang 1 month ago committed by ssongliu
parent 57120d7fa8
commit 376ec86c57

@ -309,6 +309,10 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
if err != nil {
return err
}
if err = docker.CreateDefaultDockerNetwork(); err != nil {
err = buserr.WithDetail(constant.Err1PanelNetworkFailed, err.Error(), nil)
return
}
website.RuntimeID = runtime.ID
switch runtime.Type {
case constant.RuntimePHP:

Loading…
Cancel
Save