From 5485984e05aebde22819adebfbd5ad51475a6c21 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:25:45 +0200 Subject: remove redis and circus --- srv-dev-env.sh | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'srv-dev-env.sh') diff --git a/srv-dev-env.sh b/srv-dev-env.sh index 2df9918..d41a96d 100644 --- a/srv-dev-env.sh +++ b/srv-dev-env.sh @@ -1,5 +1,6 @@ test_dir="$(mktemp -d)" +trap "rm -rf $test_dir" EXIT mkdir -p "$test_dir"/run mkdir -p "$test_dir"/data @@ -9,21 +10,6 @@ test_cfg="(import ./config.nix) // { dataDir=\"${test_dir}/data\"; }" -entrypoint=$(nix-build --no-out-link -A entrypoint \ - --arg baseConfig "$test_cfg" \ - --arg skipServices '["srv"]') - -$entrypoint & -trap "kill $!; wait; rm -rf $test_dir" EXIT - -# NOTE this is a bit of a hack... the location of the redis socket's source of -# truth is in default.nix, but it's not clear how to get that from there to -# here, so we reproduce the calculation here. -while [ ! -e $test_dir/run/redis ]; do - echo "waiting for redis unix socket" - sleep 1 -done - nix-shell -A srv.shell \ - --arg baseConfig "$test_cfg" \ + --arg config "$test_cfg" \ "$@" -- cgit v1.2.3