Fix path to static resources

In production deployments, the static assets are stored in
`/usr/local/share/receipts/static`.  The working directory is
`/usr/local/share/receipts`, so using a relative path of `static` is
sufficient.  We can use the same path in development with a symlink
pointing to the `esbuild` output directory.
bugfix/ci-buildah
Dustin 2025-03-08 20:08:45 -06:00
parent d2b93bff3b
commit cdf50c159c
2 changed files with 2 additions and 1 deletions

View File

@ -251,6 +251,6 @@ async fn rocket() -> _ {
update_transaction update_transaction
], ],
) )
.mount("/static", FileServer::from("js/dist")) .mount("/static", FileServer::from("static"))
.attach(Template::fairing()) .attach(Template::fairing())
} }

1
static Symbolic link
View File

@ -0,0 +1 @@
js/dist