From da017f5ab438e1d8aedf0e66897a5dcf59251f32 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Fri, 29 Aug 2025 07:23:36 +0000 Subject: [PATCH] chore: remove debug console.log from IOMetric component --- frontend-modern/src/components/Dashboard/IOMetric.tsx | 1 - rebuild.sh | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/IOMetric.tsx b/frontend-modern/src/components/Dashboard/IOMetric.tsx index cf9511133..e65329230 100644 --- a/frontend-modern/src/components/Dashboard/IOMetric.tsx +++ b/frontend-modern/src/components/Dashboard/IOMetric.tsx @@ -21,7 +21,6 @@ export function IOMetric(props: IOMetricProps) { const newValue = getValue() || 0; const oldValue = currentValue(); if (newValue !== oldValue) { - console.log('[IOMetric] Value change detected:', oldValue, '->', newValue, formatSpeed(newValue, 0)); setCurrentValue(newValue); } }); diff --git a/rebuild.sh b/rebuild.sh index 96f4a52be..e2e44afb4 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -4,10 +4,14 @@ echo "Building frontend..." cd /opt/pulse/frontend-modern && npm run build +echo "Copying frontend to embed location..." +cp -r /opt/pulse/frontend-modern/dist /opt/pulse/internal/api/frontend-modern/ + echo "Building Go binary..." cd /opt/pulse && go build -o pulse ./cmd/pulse echo "Restarting service..." sudo systemctl restart pulse-backend -echo "Done!" \ No newline at end of file +echo "Done!" +echo "Access Pulse at: http://localhost:7655" \ No newline at end of file