From 5fa3a35d2790c62ff86187bf290c66533489fcf3 Mon Sep 17 00:00:00 2001 From: Kin Agent Date: Sat, 21 Mar 2026 09:17:06 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20add=20ExecStartPre=20pip=20install=20to?= =?UTF-8?q?=20baton.service=20=E2=80=94=20prevents=20manual=20package=20in?= =?UTF-8?q?stalls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes BATON-FIX-015: email-validator was installed manually as root because deploy process had no pip install step. Added ExecStartPre to run pip install -r requirements.txt on every service start/restart. --- deploy/baton.service | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/baton.service b/deploy/baton.service index 141d6b6..ec8be1f 100644 --- a/deploy/baton.service +++ b/deploy/baton.service @@ -8,6 +8,7 @@ Type=simple User=www-data WorkingDirectory=/opt/baton EnvironmentFile=/opt/baton/.env +ExecStartPre=/opt/baton/venv/bin/pip install -r /opt/baton/requirements.txt -q ExecStart=/opt/baton/venv/bin/uvicorn backend.main:app --host 127.0.0.1 --port 8000 Restart=on-failure RestartSec=5s