py-dj/start-api.sh
2025-05-05 15:48:53 +02:00

14 lines
185 B
Bash
Executable file

#!/bin/bash
set -e
cd /home/pi/py-dj
# Pull latest changes
git pull
# Clear the queue directory
rm -rf queue/*
mkdir -p queue # Ensure it exists
# Start the API
uv run fastapi run