Adding deployment to raspberrypi

This commit is contained in:
2026-03-17 16:53:19 -07:00
parent 51717b3d6f
commit 437ee886b7
7 changed files with 135 additions and 51 deletions

18
scripts/deploy.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
REPO_DIR="$(cd "$(dirname "$0")/.." && pwd)"
SERVICE_NAME="birdcam"
echo "Pulling latest code..."
cd "$REPO_DIR"
git pull origin main
echo "Installing dependencies..."
poetry install --without pi --no-dev
echo "Restarting service..."
sudo systemctl restart "$SERVICE_NAME"
sudo systemctl status "$SERVICE_NAME" --no-pager
echo "Deployed successfully."