#!/bin/bash # Entry point used by the LaunchDaemon (runs as asworker). Loads /etc/autoscholar/worker.env without echoing it. set -euo pipefail set -a; . /etc/autoscholar/worker.env; set +a export NODE_OPTIONS="--max-old-space-size=4096" cd /var/autoscholar/bundle exec /opt/homebrew/bin/node dist/main.js "$@"