Replace the port and fix the starting log
This commit is contained in:
parent
ecf48cec7e
commit
dbb6aff09d
@ -5,7 +5,7 @@ use sdk_storage::{StorageService, create_app};
|
|||||||
use tide::log;
|
use tide::log;
|
||||||
|
|
||||||
const STORAGE_DIR: &str = "./storage";
|
const STORAGE_DIR: &str = "./storage";
|
||||||
const PORT: u16 = 8080;
|
const PORT: u16 = 8081;
|
||||||
const DEFAULT_TTL: u64 = 86400;
|
const DEFAULT_TTL: u64 = 86400;
|
||||||
|
|
||||||
|
|
||||||
@ -38,10 +38,8 @@ async fn main() -> tide::Result<()> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let mut app = create_app(no_ttl_permanent, STORAGE_DIR);
|
let app = create_app(no_ttl_permanent, STORAGE_DIR);
|
||||||
|
println!("Server starting on http://0.0.0.0:{}", PORT);
|
||||||
app.listen(format!("0.0.0.0:{}", PORT)).await?;
|
app.listen(format!("0.0.0.0:{}", PORT)).await?;
|
||||||
|
|
||||||
println!("Server running at http://0.0.0.0:{}", PORT);
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user