mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +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:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user