mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
chg: Default db location
This commit is contained in:
parent
a7cf0cdf30
commit
3688692c7a
@ -27,7 +27,7 @@ async fn main() -> Result<()> {
|
|||||||
let db_location = env::var("db_url")
|
let db_location = env::var("db_url")
|
||||||
.ok()
|
.ok()
|
||||||
.filter(|s| !s.trim().is_empty())
|
.filter(|s| !s.trim().is_empty())
|
||||||
.unwrap_or(String::from("unset"));
|
.unwrap_or(String::from("urls.sqlite"));
|
||||||
|
|
||||||
let port = env::var("port")
|
let port = env::var("port")
|
||||||
.unwrap_or(String::from("4567"))
|
.unwrap_or(String::from("4567"))
|
||||||
|
Loading…
Reference in New Issue
Block a user