We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c2a79 commit f520d42Copy full SHA for f520d42
integration/dev-server.sh
@@ -1,8 +1,14 @@
1
#!/bin/bash
2
set -e
3
-SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4
-source ${SCRIPT_DIR}/setup.sh
5
-source ${SCRIPT_DIR}/toxi/setup.sh
6
-pushd ${SCRIPT_DIR}/../
7
-cargo watch --shell "cargo run -- --config integration/pgdog.toml --users integration/users.toml"
+THIS_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+source ${THIS_SCRIPT_DIR}/setup.sh
+source ${THIS_SCRIPT_DIR}/toxi/setup.sh
+pushd ${THIS_SCRIPT_DIR}/../
+CMD="cargo run -- --config ${THIS_SCRIPT_DIR}/pgdog.toml --users ${THIS_SCRIPT_DIR}/users.toml"
8
+
9
+if [[ -z "$1" ]]; then
10
+ cargo watch --shell "${CMD}"
11
+else
12
+ ${CMD}
13
+fi
14
popd
integration/java/dev.sh
100644
100755
0 commit comments