86975e2e2b
- Default add-asset mode changed from barcode to OCR - Auto-start OCR camera when switching to OCR mode or Add Asset tab - Camera viewport hidden entirely after photo capture (no placeholder showing) - Retake button added to all OCR result states (found, not-found, error) - 'Retake' resets UI and re-starts camera for a new photo
11 lines
357 B
Bash
Executable File
11 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
cd /home/oplabs/projects/canteen-asset-tracker
|
|
pkill -f "uvicorn.*server:app.*8901" 2>/dev/null || true
|
|
sleep 1
|
|
python -m uvicorn server:app --host 0.0.0.0 --port 8901 \
|
|
--ssl-keyfile key.pem --ssl-certfile cert.pem --log-level info \
|
|
> /tmp/canteen-server.log 2>&1 &
|
|
echo "PID=$!"
|
|
sleep 2
|
|
curl -sk https://localhost:8901/health 2>/dev/null
|