diff options
Diffstat (limited to 'run-seckelapi.sh')
| -rwxr-xr-x | run-seckelapi.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/run-seckelapi.sh b/run-seckelapi.sh new file mode 100755 index 0000000..85cd7d5 --- /dev/null +++ b/run-seckelapi.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +SECKELAPI_BIN="$SCRIPT_DIR/backend/seckelapi/sources/target/release/seckelapi" +SECKELAPI_SOURCES="$SCRIPT_DIR/backend/seckelapi/sources" + +if [[ ! -f "$SECKELAPI_BIN" ]]; then + echo "Error: SeckelAPI binary not found at:" + echo " $SECKELAPI_BIN" + echo "" + echo "Please build SeckelAPI first using the setup helper:" + echo " ./beepzone-helper.sh" + exit 1 +fi + +echo "Starting SeckelAPI..." +echo "Binary: $SECKELAPI_BIN" +echo "Working directory: $SECKELAPI_SOURCES" +echo "" + +cd "$SECKELAPI_SOURCES" +exec ./target/release/seckelapi |
