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') }} +