Files
movim-rs/tests/e2e/run.sh
T
2026-10-24 14:03:52 +07:00

13 lines
484 B
Bash
Executable File

#!/bin/sh
# (Re)start movim-rs on 127.0.0.1:8099 against the local Prosody
D=$(cd "$(dirname "$0")" && pwd)
ROOT=$(cd "$D/../.." && pwd)
[ -f "$D/server.pid" ] && kill "$(cat "$D/server.pid")" 2>/dev/null
sleep 0.3
cd "$ROOT"
MOVIM_BIND=127.0.0.1:8099 MOVIM_DOMAIN=localhost MOVIM_ALLOW_PRIVATE_URLS=1 \
MOVIM_XMPP_PLAINTEXT=127.0.0.1:5222 MOVIM_DATA_DIR="$D/data" RUST_LOG=${RUST_LOG:-movim=info} \
./target/debug/movim > "$D/server.log" 2>&1 &
echo $! > "$D/server.pid"
sleep 1