diff --git a/README.md b/README.md index 48a770e7..490aa905 100644 --- a/README.md +++ b/README.md @@ -95,17 +95,21 @@ Then continue: # start other necessary services docker compose up -d +# run everything together +./scripts/start.sh +# .. or individually # run the API server cargo run --bin revolt-delta # run the events server cargo run --bin revolt-bonfire # run the file server cargo run --bin revolt-autumn -# run th proxy server +# run the proxy server cargo run --bin revolt-january # hint: # mold -run +# mold -run ./scripts/start.sh ``` You can start a web client by doing the following: diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100755 index 00000000..466d5607 --- /dev/null +++ b/scripts/start.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -e +cargo build \ + --bin revolt-delta \ + --bin revolt-bonfire \ + --bin revolt-autumn \ + --bin revolt-january + +trap 'pkill -f revolt-' SIGINT +cargo run --bin revolt-delta & +cargo run --bin revolt-bonfire & +cargo run --bin revolt-autumn & +cargo run --bin revolt-january