From 993f9d73b1275d59aef2fc9245b504e6196e6c14 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 20 Nov 2020 20:50:43 +0100 Subject: Quicker dev with more scripts --- example/dev-cluster.sh | 54 -------------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100755 example/dev-cluster.sh (limited to 'example') diff --git a/example/dev-cluster.sh b/example/dev-cluster.sh deleted file mode 100755 index e896b6ba..00000000 --- a/example/dev-cluster.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -set -e - -SCRIPT_FOLDER="`dirname \"$0\"`" -REPO_FOLDER="${SCRIPT_FOLDER}/../" -GARAGE_DEBUG="${REPO_FOLDER}/target/debug/" -GARAGE_RELEASE="${REPO_FOLDER}/target/release/" -PATH="${GARAGE_DEBUG}:${GARAGE_RELEASE}:$PATH" -FANCYCOLORS=("41m" "42m" "44m" "45m" "100m" "104m") - -export RUST_BACKTRACE=1 -export RUST_LOG=garage=info -MAIN_LABEL="\e[${FANCYCOLORS[0]}[main]\e[49m" - -for count in $(seq 1 3); do -CONF_PATH="/tmp/config.$count.toml" -LABEL="\e[${FANCYCOLORS[$count]}[$count]\e[49m" - -cat > $CONF_PATH <&1|while read r; do echo -en "$LABEL $r\n"; done) & -done - -until garage status 2>&1|grep -q Healthy ; do - echo -en "${MAIN_LABEL} cluster starting...\n" - sleep 1 -done -echo -en "${MAIN_LABEL} cluster started\n" - -wait -- cgit v1.2.3