15 lines
304 B
Bash
Executable File
15 lines
304 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! -d logs ]; then
|
|
mkdir logs
|
|
fi
|
|
|
|
# ensure server is not started
|
|
curl -s -X POST localhost:7001/admin/shutdown 2>&1 > /dev/null
|
|
|
|
# start server
|
|
cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log &
|
|
|
|
# run tests
|
|
cargo nextest run 2>&1 | tee logs/test-output.log
|