Run multiple processes concurrently.
Written in Rust with ☕
bash
$ cargo install concurrently
Create a tasks.toml
file in the root of your project:
```toml [tasks.api] cargoworkspacemember = true # Run the api cargo package retries = 3 # Retry 3 times before exiting delay = 1000 # Wait 1 second before running
[tasks.domain] cargoworkspacemember = true # Run the api cargo package release = true # Run in --release mode
[tasks.relay]
command = [ "docker", "run", "--name=auth-outbox-relay", "--net=host", "--init", "--rm", "acidic9/outbox-relay:latest", "./outbox-relay -d $DATABASEURL -r $REDPANDAHOST", ] retries = 3 # Retry 3 times before exiting delay = 1000 # Wait 1 second before running ```
Now you can simply run concurrently:
bash
$ cargo concurrently