start-r2r.sh 301 B

123456789
  1. #!/bin/bash
  2. # Check if HATCHET_CLIENT_TOKEN is set, if not read it from the API key file
  3. if [ -z "${HATCHET_CLIENT_TOKEN}" ]; then
  4. export HATCHET_CLIENT_TOKEN=$(cat /hatchet_api_key/api_key.txt)
  5. fi
  6. # Start the application
  7. exec uvicorn core.main.app_entry:app --host ${R2R_HOST} --port ${R2R_PORT}