Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix hot-dev reload to detect new .go file creation
rcourtmanf913eb978312
diff --git a/scripts/hot-dev.sh b/scripts/hot-dev.shindex 684c3d580a..66d0e2f42d 100755--- a/scripts/hot-dev.sh+++ b/scripts/hot-dev.sh@@ -229,13 +229,14 @@ printf "[hot-dev] Starting backend file watcher...\n"while true; do# Watch for changes to .go files (excluding vendor and node_modules)inotifywait -r -e modify,create,delete,move \- --exclude '(vendor/|node_modules/|\.git/)' \- --format '%w%f' \+ --exclude '(vendor/|node_modules/|\.git/|\.swp$|\.tmp$|~$)' \+ --format '%e %w%f' \"${ROOT_DIR}/cmd" "${ROOT_DIR}/internal" "${ROOT_DIR}/pkg" 2>/dev/null | \- while read -r changed_file; do- if [[ "$changed_file" == *.go ]]; then+ while read -r event changed_file; do+ # Rebuild on any .go file change OR any create/delete event (catches new files)+ if [[ "$changed_file" == *.go ]] || [[ "$event" =~ CREATE|DELETE|MOVED ]]; thenecho ""- echo "[hot-dev] 🔄 Go file changed: $(basename "$changed_file")"+ echo "[hot-dev] 🔄 Change detected: $event $(basename "$changed_file")"echo "[hot-dev] Rebuilding backend..."# Rebuild the binary