about summary refs log tree commit diff
path: root/kittybox-rs/dev.sh
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-07-29 21:59:56 +0300
committerVika <vika@fireburn.ru>2023-07-29 21:59:56 +0300
commit0617663b249f9ca488e5de652108b17d67fbaf45 (patch)
tree11564b6c8fa37bf9203a0a4cc1c4e9cc088cb1a5 /kittybox-rs/dev.sh
parent26c2b79f6a6380ae3224e9309b9f3352f5717bd7 (diff)
Moved the entire Kittybox tree into the root
Diffstat (limited to 'kittybox-rs/dev.sh')
-rwxr-xr-xkittybox-rs/dev.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/kittybox-rs/dev.sh b/kittybox-rs/dev.sh
deleted file mode 100755
index 979b85a..0000000
--- a/kittybox-rs/dev.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-if [[ -z $KITTYBOX_LOG ]]; then
-    export KITTYBOX_LOG="kittybox=debug,retainer::cache=warn,h2=info,rustls=info,tokio=info,tower_http::trace=debug,sqlx=trace"
-fi
-#export BACKEND_URI=file://./test-dir
-export BACKEND_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql"
-export JOB_QUEUE_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql"
-export BLOBSTORE_URI=file://./media-store
-export AUTH_STORE_URI=file://./auth-store
-export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz
-#export COOKIE_SECRET_FILE=/dev/null
-if [[ "$1" == "watch" ]]; then
-	shift
-	exec systemfd --no-pid -s http::8080 -- cargo watch \
-         --ignore '.direnv' \
-         --ignore '*~' \
-         -L "$KITTYBOX_LOG" \
-         -x run \
-         "$@"
-elif [[ "$1" == "run" ]]; then
-	shift 1
-    export RUST_LOG="$KITTYBOX_LOG"
-	exec cargo run "$@"
-elif [[ "$1" == "_run" ]]; then
-	shift 1
-	release=$1
-	shift 1
-	exec target/${release}/kittybox "$@"
-else
-	echo "Usage: ./dev.sh [watch|run]"
-	exit 1
-fi