feat: add systemd scripts
This commit is contained in:
parent
d265b92f1d
commit
5666b87124
2 changed files with 27 additions and 0 deletions
14
start-api.sh
Executable file
14
start-api.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue