Disable BM sync in dev

This commit is contained in:
Marcus Kida 2026-02-10 09:31:44 +01:00
parent ae36e7767a
commit afa8f9e9f2
2 changed files with 6 additions and 1 deletions

View file

@ -18,6 +18,7 @@ services:
- JSON_PATH=/app/rptrs.json
- BMRPTRS_PATH=/app/bmrptrs.json
- LISTEN_ADDR=:8080
- BM_SYNC=true
restart: unless-stopped
volumes:

View file

@ -26,7 +26,11 @@ func main() {
log.Fatalf("Failed to seed database: %v", err)
}
if os.Getenv("BM_SYNC") == "true" {
startBMDeviceSync(db)
} else {
log.Println("BM device sync disabled (set BM_SYNC=true to enable)")
}
mux := http.NewServeMux()
mux.HandleFunc("/api/repeaters", handleRepeaters(db))