updated default path for public assets after workspace splitup

This commit is contained in:
Philippe Loctaux 2024-11-24 16:49:39 +01:00
parent e1f561d6af
commit dfd521bb21

View file

@ -17,7 +17,7 @@ use pages::*;
#[rocket::launch] #[rocket::launch]
fn rocket() -> _ { fn rocket() -> _ {
let assets = std::env::var("PLCOM_ASSETS_PATH").unwrap_or("public".into()); let assets = std::env::var("PLCOM_ASSETS_PATH").unwrap_or("../../public".into());
let server = rocket::build() let server = rocket::build()
.mount("/", rocket::fs::FileServer::from(assets)) .mount("/", rocket::fs::FileServer::from(assets))