Fileserver::from(relative!(path)) causes runtime to fail on compile time path #2592
Replies: 2 comments
-
does work when writing
as for now leaving this as a potential bug report |
Beta Was this translation helpful? Give feedback.
-
The docs for |
Beta Was this translation helpful? Give feedback.
-
looking at a way to server css and images with Tera templates I started building rocket like which runs fine for the build user
the compiled binary runs fine from the build directory
However, when copying the binary to different directory there is an alert stating the
I'm very new to both rust and rocket and i don't know if there's a build flag required to build binaries in non-absolute way so the
<srcode-build-path-here>
is omitted.The binary works fine for the user used to 'cargo build --release' the binary but throws the for mentioned error when ran for a different user. I'm unable to find related documentation.
Thanks for your assist
Beta Was this translation helpful? Give feedback.
All reactions