mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
* improve code for notify * fix * cargo fmt * improve code and create `DEFAULT_DELIMITER` * fix * fix * improve code for notify * fmt * Update crates/notify/src/registry.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update crates/notify/src/factory.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix cllipy --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
17 lines
437 B
Bash
Executable File
17 lines
437 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
current_dir=$(pwd)
|
|
echo "Current directory: $current_dir"
|
|
|
|
if [ -z "$RUST_LOG" ]; then
|
|
export RUST_BACKTRACE=1
|
|
export RUST_LOG="rustfs=info,ecstore=info,s3s=debug,iam=info"
|
|
fi
|
|
|
|
# deploy/logs/notify directory
|
|
echo "Creating log directory if it does not exist..."
|
|
mkdir -p "$current_dir/deploy/logs/notify"
|
|
|
|
# 启动 webhook 服务器
|
|
echo "Starting webhook server..."
|
|
cargo run --example webhook -p rustfs-notify & |