Browse Source

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

pull/6815/head
zhengkunwang 1 month ago committed by GitHub
parent
commit
df5b69756c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      backend/app/service/website.go

4
backend/app/service/website.go

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