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
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user