mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
24 lines
514 B
Bash
Executable File
24 lines
514 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p ./target/volume/test
|
|
mkdir -p ./target/volume/test{0..4}
|
|
|
|
DATA_DIR="./target/volume/test"
|
|
# DATA_DIR="./target/volume/test{0...4}"
|
|
|
|
if [ -n "$1" ]; then
|
|
DATA_DIR="$1"
|
|
fi
|
|
|
|
if [ -z "$RUST_LOG" ]; then
|
|
export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug"
|
|
fi
|
|
|
|
cargo run "$DATA_DIR"
|
|
# -- --access-key AKEXAMPLERUSTFS \
|
|
# --secret-key SKEXAMPLERUSTFS \
|
|
# --address 0.0.0.0:9010 \
|
|
# --domain-name 127.0.0.1:9010 \
|
|
"$DATA_DIR"
|
|
|
|
# cargo run "$DATA_DIR" |