Skip to content

Commit

Permalink
Read address from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
cubetastic33 committed Jan 2, 2025
1 parent 7b9b9d1 commit e8816d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ fn rocket() -> _ {
"databases.admindb.url",
env::var("DATABASE_URL").expect("Env var DATABASE_URL not found"),
))
.merge(("address", env::var("ADDRESS").unwrap_or("127.0.0.1".to_string())))
.merge(("port", port));

rocket::custom(figment)
Expand Down

0 comments on commit e8816d6

Please sign in to comment.