This commit is contained in:
2026-03-05 23:16:49 +01:00
parent d76abde68d
commit 2ccf71915f
7 changed files with 461 additions and 19 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -eu
APP_ENV="${APP_ENV:-staging}"
if [ "$APP_ENV" = "live" ]; then
SCRIPT="/app/live/tools/pi_control/worker.php"
else
SCRIPT="/app/staging/tools/pi_control/worker.php"
fi
if [ ! -f "$SCRIPT" ]; then
echo "worker.php not found at $SCRIPT"
exit 1
fi
exec php "$SCRIPT"