fixes: light qol fixes for ssg and logging on dx run (#3216)
This commit is contained in:
1 parent
ba4389567d
commit
5ecbb6594c
2 files changed
+10
-4
No files matched your search
@@ -693,7 +693,9 @@ impl AppBundle {
|
||||
}
|
||||
|
||||
// Wait a second for the cache to be written by the server
|
||||
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
|
||||
tracing::info!("Waiting a moment for isrg to propagate...");
|
||||
|
||||
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
|
||||
|
||||
tracing::info!("SSG complete");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::*;
|
||||
use crate::{serve::ServeUpdate, BuildArgs, Builder, DioxusCrate, Result};
|
||||
use crate::{serve::ServeUpdate, BuildArgs, Builder, DioxusCrate, Platform, Result};
|
||||
|
||||
/// Run the project with the given arguments
|
||||
#[derive(Clone, Debug, Parser)]
|
||||
@@ -23,8 +23,12 @@ impl RunArgs {
|
||||
.finish()
|
||||
.await?;
|
||||
|
||||
let devserver_ip = "127.0.0.1:8080".parse().unwrap();
|
||||
let fullstack_ip = "127.0.0.1:8081".parse().unwrap();
|
||||
let devserver_ip = "127.0.0.1:8081".parse().unwrap();
|
||||
let fullstack_ip = "127.0.0.1:8080".parse().unwrap();
|
||||
|
||||
if self.build_args.platform() == Platform::Web || self.build_args.fullstack {
|
||||
tracing::info!("Serving at: {}", fullstack_ip);
|
||||
}
|
||||
|
||||
let mut runner = crate::serve::AppRunner::start(&krate);
|
||||
runner
|
||||
|
||||
Reference in new issue
Block a user