Skip to content

Commit a3b371c

Browse files
Leonid Ryzhykryzhyk
authored andcommitted
Simplify start_manager.sh.
The script now requires fewer manual arguments, as most of them are set by default. Signed-off-by: Leonid Ryzhyk <leonid@feldera.com>
1 parent 0d8d658 commit a3b371c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

scripts/start_manager.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ cd "${SQL_COMPILER_DIR}" && ./build.sh
1919

2020
WORKING_DIR="${1:-${HOME}/.dbsp}"
2121

22-
# This is the most portable way to get an absolute path since
23-
# 'realpath' is not available on MacOS by default.
24-
WORKING_DIR_ABS=$(cd "$(dirname "${WORKING_DIR}")" && pwd -P)/$(basename "${WORKING_DIR}")
2522
DEFAULT_BIND_ADDRESS="127.0.0.1"
2623
BIND_ADDRESS="${2:-$DEFAULT_BIND_ADDRESS}"
2724

@@ -44,11 +41,6 @@ if [ -n "$manager_pid" ]; then
4441
fi
4542

4643
cd "${MANAGER_DIR}" && ~/.cargo/bin/cargo build $RUST_BUILD_PROFILE $PG_EMBED
47-
cd "${MANAGER_DIR}" && ~/.cargo/bin/cargo run --bin pipeline-manager $RUST_BUILD_PROFILE $PG_EMBED -- \
44+
cd "${ROOT_DIR}" && ~/.cargo/bin/cargo run --bin pipeline-manager $RUST_BUILD_PROFILE $PG_EMBED -- \
4845
--bind-address="${BIND_ADDRESS}" \
49-
--api-server-working-directory="${WORKING_DIR_ABS}" \
50-
--compiler-working-directory="${WORKING_DIR_ABS}" \
51-
--runner-working-directory="${WORKING_DIR_ABS}" \
52-
--sql-compiler-home="${SQL_COMPILER_DIR}" \
53-
--dbsp-override-path="${ROOT_DIR}" \
5446
${DB_CONNECTION_STRING}

0 commit comments

Comments
 (0)