Skip to content

Commit

Permalink
feat: Reads Renviron on root of Working Dir
Browse files Browse the repository at this point in the history
  • Loading branch information
andyquinterom committed Nov 26, 2024
1 parent 4513830 commit 2ce0773
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ venv/
.Rproj.user
*.log
*.log.bak
.Renviron
.env
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ rustls = "0.23.16"
chrono = "0.4.38"
uuid = { version = "1.11.0", features = ["v7"] }
parse-size = "1.0.0"
dotenv = "0.15.0"

[dev-dependencies]
rand = "0.8.5"
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ use faucet_server::{cli::Shutdown, shutdown};

#[tokio::main]
pub async fn main() -> FaucetResult<()> {
dotenv::from_filename(".Renviron").ok();
dotenv::from_filename(".env").ok();

let cli_args = Args::parse();

let shutdown_signal = match cli_args.shutdown {
Expand Down

0 comments on commit 2ce0773

Please sign in to comment.