Allow PORT environment to be not set

- It's quite weird to require the `PORT` environment to be set, when it
already can be set via the config file.
This commit is contained in:
Gusted 2022-10-16 23:03:27 +02:00
parent 97abca2520
commit b3e0ff6769
No known key found for this signature in database
GPG Key ID: FD821B732837125F

View File

@ -170,7 +170,7 @@ impl Settings {
Ok(val) => {
s.set("server.port", val).unwrap();
}
Err(e) => warn!("couldn't interpret PORT: {}", e),
_ => (),
}
match env::var("DATABASE_URL") {