build: migrate to Dioxus 0.6
This commit is contained in:
@@ -11,19 +11,14 @@ mod migrations;
|
||||
|
||||
use components::app::App;
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_logger::tracing::{info, Level};
|
||||
use tracing::info;
|
||||
|
||||
fn main() {
|
||||
dioxus_logger::init(Level::INFO).expect("Failed to initialize the logger.");
|
||||
|
||||
info!("Running migrations.");
|
||||
server_only!(
|
||||
migrations::run_migrations().expect("Failed to run migrations.");
|
||||
);
|
||||
|
||||
info!("Starting app.");
|
||||
let cfg = server_only!(
|
||||
dioxus::fullstack::Config::new().addr(std::net::SocketAddr::from(([0, 0, 0, 0], 8000)))
|
||||
);
|
||||
LaunchBuilder::fullstack().with_cfg(cfg).launch(App);
|
||||
launch(App);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user