This commit is contained in:
weisd
2024-06-25 16:22:14 +08:00
parent 0a9f06096b
commit 92d6b07578
8 changed files with 145 additions and 29 deletions

18
scripts/run.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
DATA_DIR="/tmp"
if [ -n "$1" ]; then
DATA_DIR="$1"
fi
if [ -z "$RUST_LOG" ]; then
export RUST_LOG="rustfs=debug"
fi
cargo run \
-- --access-key AKEXAMPLERUSTFS \
-- --secret-key SKEXAMPLERUSTFS \
-- --host localhost \
-- --port 9010 \
-- --domain-name localhost:9010 \
"$DATA_DIR"