From 06f6a452896654df28eb8fc70ad8cfa5a8478077 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 18 Sep 2023 21:52:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20PHP=20=E6=BA=90=E6=96=87=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=AB=8B=E5=8D=B3=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#2341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website.go | 3 +++ .../website/config/resource/nginx/index.vue | 10 +++---- .../website/config/resource/php-fpm/index.vue | 26 ++++++++++++------- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/backend/app/service/website.go b/backend/app/service/website.go index 4c4990336..e3205a28d 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -1211,6 +1211,9 @@ func (w WebsiteService) UpdatePHPConfigFile(req request.WebsitePHPFileUpdate) er if err := files.NewFileOp().WriteFile(configPath, strings.NewReader(req.Content), 0755); err != nil { return err } + if _, err := compose.Restart(runtimeInstall.GetComposePath()); err != nil { + return err + } return nil } diff --git a/frontend/src/views/website/website/config/resource/nginx/index.vue b/frontend/src/views/website/website/config/resource/nginx/index.vue index c0ece9896..71cb3ade9 100644 --- a/frontend/src/views/website/website/config/resource/nginx/index.vue +++ b/frontend/src/views/website/website/config/resource/nginx/index.vue @@ -5,7 +5,7 @@ :placeholder="$t('commons.msg.noneData')" :indent-with-tab="true" :tabSize="4" - style="margin-top: 10px; max-height: 700px" + style="max-height: 700px" :lineWrapping="true" :matchBrackets="true" theme="cobalt" @@ -13,11 +13,9 @@ :extensions="extensions" v-model="content" /> -
- - {{ $t('nginx.saveAndReload') }} - -
+ + {{ $t('nginx.saveAndReload') }} +