From b5381fde69cbbae45ef4f4934d067aa4bfd0a5c6 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 21 May 2026 17:56:13 -0400 Subject: [PATCH] t_4a71eab5: Strip admin UI from main index.html - Removed empty comment blocks for removed admin tabs (Customers, Dashboard, Activity, Reports, Settings) - Removed geofence Create/Edit/Delete UI from map tab (chip, color picker, geofence panel) - Removed leaflet-draw dependency (no longer needed) - Removed CustState and showCustView (admin-only) - Removed all geofence JS functions (toggleGeofenceDraw, saveDrawnGeofence, loadGeofences, renderGeofenceList, editGeofence, deleteGeofence, assignGeofenceUsers) - Removed loadTechnicianOptions() and its /api/users call - Fixed loadManualLocations() to not call removed /api/locations endpoint - Removed initMap orphan call and drawingGeofence cleanup in switchTab - Removed unused geofence CSS styles and color-picker-row styles - Kept Admin Panel link in drawer footer pointing to admin app --- restart_server.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 restart_server.sh diff --git a/restart_server.sh b/restart_server.sh new file mode 100644 index 0000000..fa69d07 --- /dev/null +++ b/restart_server.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Restart canteen-asset-tracker server +cd /home/oplabs/projects/canteen-asset-tracker + +# Kill existing server +pkill -f "python.*server.py" 2>/dev/null || true +sleep 1 + +# Activate venv and start +source .venv/bin/activate +nohup python server.py > /tmp/canteen-server.log 2>&1 & +echo "Server PID: $!" +sleep 3 + +# Check health +curl -s http://localhost:8901/health 2>/dev/null || curl -s http://localhost:8900/health 2>/dev/null || echo "Health check failed"