Skip to content

Commit 8cba527

Browse files
committed
feat: Reads Renviron on root of Working Dir
1 parent 4513830 commit 8cba527

File tree

4 files changed

+43
-37
lines changed

4 files changed

+43
-37
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ venv/
44
.Rproj.user
55
*.log
66
*.log.bak
7+
.Renviron
8+
.env

Cargo.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ rustls = "0.23.16"
4646
chrono = "0.4.38"
4747
uuid = { version = "1.11.0", features = ["v7"] }
4848
parse-size = "1.0.0"
49+
dotenv = "0.15.0"
4950

5051
[dev-dependencies]
5152
rand = "0.8.5"

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use faucet_server::{cli::Shutdown, shutdown};
88

99
#[tokio::main]
1010
pub async fn main() -> FaucetResult<()> {
11+
dotenv::from_filename(".Renviron").ok();
12+
dotenv::from_filename(".env").ok();
13+
1114
let cli_args = Args::parse();
1215

1316
let shutdown_signal = match cli_args.shutdown {

0 commit comments

Comments
 (0)