This commit is contained in:
parent
764f2a879d
commit
0850dab882
2 changed files with 29 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
// - PkgDB Abstraction
|
||||
// - Pkg Abstraction
|
||||
|
||||
use based::get_pg;
|
||||
use based::page::{Shell, render_page};
|
||||
use based::request::{RequestContext, StringResponse};
|
||||
use maud::html;
|
||||
|
@ -38,6 +39,10 @@ pub async fn index_page(ctx: RequestContext) -> StringResponse {
|
|||
#[rocket::launch]
|
||||
async fn launch() -> _ {
|
||||
env_logger::init();
|
||||
|
||||
let pg = get_pg!();
|
||||
sqlx::migrate!("./migrations").run(pg).await.unwrap();
|
||||
|
||||
rocket::build().mount("/", routes![
|
||||
index_page,
|
||||
routes::pkg_route,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue