fleet-memory/scripts/dev/start-worker.sh
Nicolò Boschi 4c792400c1
feat: new 'worker' service (#176)
* feat: new 'worker' service

* doc

* docs

* tests
2026-01-20 10:17:56 +01:00

20 lines
328 B
Bash
Executable file

#!/bin/bash
set -e
cd "$(dirname "$0")/../.."
ENV_FILE=".env"
if [ ! -f "$ENV_FILE" ]; then
echo "Error: Environment file $ENV_FILE not found at project root."
exit 1
fi
echo "Loading environment from $ENV_FILE"
echo ""
# Export all variables from env file
set -a
source "$ENV_FILE"
set +a
uv run hindsight-worker "$@"