ezidam: dont put relative path for static files, bundle them in docker image

This commit is contained in:
Philippe Loctaux 2023-03-20 23:16:43 +01:00
parent 7aa5c96f7a
commit 8365bc5dff
2 changed files with 2 additions and 1 deletions

View file

@ -37,7 +37,7 @@ pub fn rocket_setup(rocket_builder: Rocket<Build>) -> Rocket<Build> {
let rocket_builder = rocket_builder.attach(Template::fairing());
// Static assets
let rocket_builder = rocket_builder.mount("/", FileServer::from(relative!("static")));
let rocket_builder = rocket_builder.mount("/", FileServer::from("static"));
// Routes
let rocket_builder = routes::routes(rocket_builder);