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

View File

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