Kiosk : git pull auto + diagnostic caméra dans admin
- kiosk-session.sh : git pull à chaque démarrage du backend (les correctifs Gitea sont maintenant déployés automatiquement) - Log backend dans /tmp/photobooth-backend.log (lisible via admin) - Admin > Infos : bouton "Diagnostic camera" → appelle /api/camera/debug et affiche mode, connectee, erreur capture_preview, widgets gphoto2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,8 +25,10 @@ sleep 1
|
||||
_backend_loop() {
|
||||
while true; do
|
||||
cd /home/jules/photobooth
|
||||
# Mise à jour automatique depuis Gitea
|
||||
git pull --ff-only 2>&1 | logger -t photobooth-git
|
||||
source .venv/bin/activate
|
||||
authbind --deep python -m backend.main
|
||||
authbind --deep python -m backend.main 2>&1 | tee -a /tmp/photobooth-backend.log
|
||||
echo "[kiosk] backend terminé, redémarrage dans 3s..."
|
||||
sleep 3
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user