adad
This commit is contained in:
17
tools/pi_control/worker_entry.sh
Normal file
17
tools/pi_control/worker_entry.sh
Normal 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"
|
||||
Reference in New Issue
Block a user