Skip to content

Commit

Permalink
fix: build maker first before running detached
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Hoenisch <[email protected]>
  • Loading branch information
bonomat committed Mar 22, 2024
1 parent e4ab959 commit 59ecbf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ run-maker-detached:
#!/usr/bin/env bash
set -euxo pipefail
echo "Building maker first"
cargo build --bin dev-maker
echo "Starting (and building) maker"

just maker &> {{maker_log_file}} &
just wait-for-maker-to-be-ready
echo "Maker successfully started. You can inspect the logs at {{maker_log_file}}"
Expand Down Expand Up @@ -444,7 +447,7 @@ wait-for-maker-to-be-ready:
set +e
MAX_RETRIES=30
RETRY_DELAY=1
RETRY_DELAY=2

for ((i=1; i<=$MAX_RETRIES; i++)); do
response=$(curl -s http://localhost:8000/api/orderbook/orders)
Expand Down

0 comments on commit 59ecbf8

Please sign in to comment.