mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-30 15:08:29 +00:00
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:
parent
97abca2520
commit
b3e0ff6769
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user