mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			434 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			434 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use backend::{
 | |
|     application::{init_app_context, Application},
 | |
|     config::get_configuration,
 | |
| };
 | |
| 
 | |
| #[actix_web::main]
 | |
| async fn main() -> std::io::Result<()> {
 | |
|     let configuration = get_configuration().expect("Failed to read configuration.");
 | |
|     let app_ctx = init_app_context(&configuration).await;
 | |
|     let application = Application::build(configuration, app_ctx).await?;
 | |
|     application.run_until_stopped().await?;
 | |
| 
 | |
|     Ok(())
 | |
| }
 | 
