implemented git sync for app templates

This commit is contained in:
2026-02-14 13:40:00 +01:00
parent 44a7d0de2c
commit ee8650a41c
6 changed files with 499 additions and 13 deletions
+7 -1
View File
@@ -14,6 +14,7 @@ import (
"gitea.dooplex.hu/admin/felhom-controller/internal/api"
"gitea.dooplex.hu/admin/felhom-controller/internal/config"
"gitea.dooplex.hu/admin/felhom-controller/internal/stacks"
catalogsync "gitea.dooplex.hu/admin/felhom-controller/internal/sync"
"gitea.dooplex.hu/admin/felhom-controller/internal/web"
)
@@ -55,8 +56,13 @@ func main() {
logger.Printf("[WARN] Initial stack scan failed: %v", err)
}
// --- Initialize catalog syncer ---
syncer := catalogsync.New(cfg, logger, stackMgr.ScanStacks)
syncer.Start()
defer syncer.Stop()
// --- Initialize API router ---
apiRouter := api.NewRouter(cfg, stackMgr, logger)
apiRouter := api.NewRouter(cfg, stackMgr, syncer, logger)
// --- Initialize web server ---
webServer := web.NewServer(cfg, stackMgr, logger, Version)