From 0b552b1697f5aace5387fc182acc5ba9eb1d18e1 Mon Sep 17 00:00:00 2001 From: houseme Date: Wed, 2 Apr 2025 17:18:03 +0800 Subject: [PATCH] run.sh add RUSTFS_OBS_CONFIG = "./config/obs.example.toml" --- Cargo.toml | 2 +- rustfs/Cargo.toml | 2 +- scripts/run.sh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0945e52b..76edbe03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ backon = "1.3.0" bytes = "1.9.0" bytesize = "1.3.0" chrono = { version = "0.4.40", features = ["serde"] } -clap = { version = "4.5.31", features = ["derive", "env"] } +clap = { version = "4.5.35", features = ["derive", "env"] } config = "0.15.9" datafusion = "46.0.0" derive_builder = "0.20.2" diff --git a/rustfs/Cargo.toml b/rustfs/Cargo.toml index acb7be72..db348d89 100644 --- a/rustfs/Cargo.toml +++ b/rustfs/Cargo.toml @@ -98,7 +98,7 @@ futures-util.workspace = true # uuid = { version = "1.8.0", features = ["v4", "fast-rng", "serde"] } ecstore = { path = "../ecstore" } s3s.workspace = true -clap = { version = "4.5.31", features = ["derive", "env"] } +clap = { workspace = true } tracing-subscriber = { version = "0.3.19", features = ["env-filter", "time"] } hyper-util = { version = "0.1.10", features = [ "tokio", diff --git a/scripts/run.sh b/scripts/run.sh index 2b00ade0..cc964bee 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -26,6 +26,9 @@ export RUSTFS_CONSOLE_ENABLE=true export RUSTFS_CONSOLE_ADDRESS="0.0.0.0:9002" # export RUSTFS_SERVER_DOMAINS="localhost:9000" +# 具体路径修改为配置文件真实路径,obs.example.toml 仅供参考 +export RUSTFS_OBS_CONFIG="./config/obs.example.toml" + if [ -n "$1" ]; then export RUSTFS_VOLUMES="$1" fi