14 lines
185 B
Bash
Executable file
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
|