fix: Fixed issue with where runtime website fails to start after being stopped (#9827)

This commit is contained in:
CityFun 2025-08-04 13:40:21 +08:00 committed by GitHub
parent 430c75e7ed
commit 00f103c66a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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})
}
}