autoimport

This commit is contained in:
lowcarbdev
2026-01-17 20:56:30 -07:00
parent d9cedb876b
commit 0936472932
2 changed files with 296 additions and 0 deletions
+6
View File
@@ -123,6 +123,12 @@ func main() {
logger.Info("Serving static files from ./frontend/dist with SPA routing support")
}
// Start auto-import service
dataDir := dbPathPrefix + "/data"
autoImportService := internal.NewAutoImportService(dataDir)
autoImportService.Start()
defer autoImportService.Stop()
// Start pprof server in a separate goroutine for profiling
go func() {
port := os.Getenv("PORT")