From 376ec86c57d08b4d5d2db038a426693f632c7421 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 22 Oct 2024 19:24:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=BD=91=E7=AB=99=E5=A2=9E=E5=8A=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=BD=91=E7=BB=9C=E5=88=9B=E5=BB=BA=20(#6807)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/app/service/website.go b/backend/app/service/website.go index b55ee8a86..217f92f84 100644 --- a/backend/app/service/website.go +++ b/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: