11 lines
272 B
Rust
11 lines
272 B
Rust
use ht_booking::app::App;
|
|
use loco_rs::cli;
|
|
use migration::Migrator;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> loco_rs::Result<()> {
|
|
// Load ADMIN_* credentials (and any DATABASE_URL override) from `.env`.
|
|
dotenvy::dotenv().ok();
|
|
cli::main::<App, Migrator>().await
|
|
}
|