run-seckelapi.sh 633 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  4. SECKELAPI_BIN="$SCRIPT_DIR/backend/seckelapi/sources/target/release/seckelapi"
  5. SECKELAPI_SOURCES="$SCRIPT_DIR/backend/seckelapi/sources"
  6. if [[ ! -f "$SECKELAPI_BIN" ]]; then
  7. echo "Error: SeckelAPI binary not found at:"
  8. echo " $SECKELAPI_BIN"
  9. echo ""
  10. echo "Please build SeckelAPI first using the setup helper:"
  11. echo " ./beepzone-helper.sh"
  12. exit 1
  13. fi
  14. echo "Starting SeckelAPI..."
  15. echo "Binary: $SECKELAPI_BIN"
  16. echo "Working directory: $SECKELAPI_SOURCES"
  17. echo ""
  18. cd "$SECKELAPI_SOURCES"
  19. exec ./target/release/seckelapi