diff --git a/backend/app/service/website.go b/backend/app/service/website.go index e99e94cc3..1c046679f 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -96,6 +96,10 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons if err != nil { return 0, nil, err } + nginxInstall, err := getAppInstallByKey(constant.AppOpenresty) + if err != nil { + return 0, nil, err + } for _, web := range websites { var ( appName string @@ -115,10 +119,12 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons } runtimeName = runtime.Name } + sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", web.Alias) websiteDTOs = append(websiteDTOs, response.WebsiteDTO{ Website: web, AppName: appName, RuntimeName: runtimeName, + SitePath: sitePath, }) } return total, websiteDTOs, nil diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index 261802448..82252ccc5 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -79,6 +79,15 @@ [{{ row.runtimeName }}] + + +