mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 创建运行环境网站增加默认网络创建 (#6807)
This commit is contained in:
parent
745bb98abe
commit
df5b69756c
@ -309,6 +309,10 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err = docker.CreateDefaultDockerNetwork(); err != nil {
|
||||||
|
err = buserr.WithDetail(constant.Err1PanelNetworkFailed, err.Error(), nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
website.RuntimeID = runtime.ID
|
website.RuntimeID = runtime.ID
|
||||||
switch runtime.Type {
|
switch runtime.Type {
|
||||||
case constant.RuntimePHP:
|
case constant.RuntimePHP:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user