From 00f103c66ae4d12119f4a3a1d3fc4fa87bd44438 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:40:21 +0800 Subject: [PATCH] fix: Fixed issue with where runtime website fails to start after being stopped (#9827) --- agent/app/service/app.go | 2 +- agent/app/service/website_utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/app/service/app.go b/agent/app/service/app.go index 50d369190..b5b6a43c5 100644 --- a/agent/app/service/app.go +++ b/agent/app/service/app.go @@ -1075,7 +1075,7 @@ func (a AppService) SyncAppListFromRemote(taskID string) (err error) { tagId, ok := tagMap[tag] if ok { exist, _ := appTagRepo.GetFirst(appTagRepo.WithByTagID(tagId), appTagRepo.WithByAppID(app.ID)) - if exist.ID == 0 { + if exist != nil { appTags = append(appTags, &model.AppTag{ AppId: app.ID, TagId: tagId, diff --git a/agent/app/service/website_utils.go b/agent/app/service/website_utils.go index 1a4a9958d..56e796346 100644 --- a/agent/app/service/website_utils.go +++ b/agent/app/service/website_utils.go @@ -955,7 +955,7 @@ func opWebsite(website *model.Website, operate string) error { } server.UpdatePHPProxy([]string{website.Proxy}, localPath) } else { - proxy := fmt.Sprintf("http://127.0.0.1:%s", runtime.Port) + proxy := fmt.Sprintf("http://%s", website.Proxy) server.UpdateRootProxy([]string{proxy}) } }