Skip to content

Commit

Permalink
v1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Apr 5, 2022
1 parent 306d05e commit 188fd43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ bash -ex one-touch.sh

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/kzT46l?referralCode=pJYbdU)

不想配置 `Nginx``SSL` ?了解一下
[Railway 部署 Server 教程](https://github.com/zdz/ServerStatus-Rust/wiki/Railway)

## 3.服务端说明
Expand Down Expand Up @@ -113,7 +114,7 @@ systemctl start stat_server
RUST_BACKTRACE=1 RUST_LOG=trace ./stat_server -c config.toml

# 测试配置文件是否有效
stat_server -c config.toml -t
./stat_server -c config.toml -t
# 根据配置发送测试消息,验证通知是否生效
./stat_server -c config.toml --notify-test

Expand Down
2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_client"
version = "1.3.3"
version = "1.3.4"

authors = ["doge <[email protected]>"]
categories = ["monitoring-tools"]
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_server"
version = "1.3.3"
version = "1.3.4"

authors = ["doge <[email protected]>"]
categories = ["monitoring-tools"]
Expand Down
4 changes: 2 additions & 2 deletions server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ async fn main() -> Result<()> {
if let Some(cfg) = if args.cloud {
// export SRV_CONF=$(cat config.toml)
// echo "$SRV_CONF"
eprintln!("run cloud mode, load config from env");
eprintln!("run in cloud mode, load config from env");
config::from_env()
} else {
eprintln!("run normal mode, load config from env");
eprintln!("run in normal mode, load config from local file");
config::from_file(&args.config)
} {
debug!("{:?}", cfg);
Expand Down

0 comments on commit 188fd43

Please sign in to comment.