feat: set port configurable

This commit is contained in:
YuKun Liu committed 2022-06-29 16:40:23 +08:00
1 parent c9d98820c6
commit c54d467730
3 files changed
+12 -9

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ impl Serve {
Serve::regen_dev_page(&crate_config)?;
// start the develop server
server::startup(crate_config.clone()).await?;
server::startup(self.serve.port, crate_config.clone()).await?;
Ok(())
}