Files
didactyl/swarm/queen/run.sh
T

25 lines
693 B
Bash
Executable File

#!/usr/bin/env bash
# Run the swarm queen from its own directory.
#
# The genesis file is consumed ONCE on first run. After that, all agent
# state lives on the relay. To change the queen, edit the events on the
# relay (skills, profile, relay list), not genesis.jsonc.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$HERE/../.." && pwd)"
BIN="${DIDACTYL_BIN:-$ROOT/didactyl_static_x86_64_debug}"
if [[ ! -x "$BIN" ]]; then
echo "didactyl binary not found at $BIN" >&2
echo "Build it with: ./build_static.sh --debug" >&2
exit 1
fi
cd "$HERE"
exec "$BIN" \
--config "$HERE/genesis.jsonc" \
--api-port 8484 \
--api-bind 127.0.0.1 \
--debug 4