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

View File

@@ -8,7 +8,8 @@ sudo apt-get install -y \
python3-prctl \
python3-picamera2 \
python3-pil \
ffmpeg
ffmpeg \
nginx
echo "Configuring Poetry to use system site-packages..."
poetry config virtualenvs.options.system-site-packages true
@@ -17,7 +18,7 @@ echo "Removing existing venv to ensure clean state..."
poetry env remove python3 2>/dev/null || true
echo "Installing Python dependencies..."
poetry install --without pi
poetry install --without pi --no-dev
echo "Verifying picamera2 is accessible..."
poetry run python -c "import picamera2; print(f'picamera2 found at: {picamera2.__file__}')"