Building my App #4133
Replies: 3 comments 1 reply
-
PS If I've misunderstood and what I'm trying to do is not possible, I would also be grateful for this information so that I can stop trying to find a non-existent answer :) |
Beta Was this translation helpful? Give feedback.
-
What you're doing is definitely possible and is likely just the result of incorrect relative paths in whatever part of your server is serving the static files (JS/WASM) from You probably just need to set the cargo leptos build
cd target/release
cp {name of the binary} ../site
cd ../site
LEPTOS_SITE_ROOT="." ./{name of binary} works fine |
Beta Was this translation helpful? Give feedback.
-
Firstly a reminder for anyone asking such a beginner question as me: Specifically for the "start-axum" example, copying the generated exe to the directory above |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and thank you for this wonderful crate :)
I want to use Leptos to build an App which I can run on one computer and access from others. I don't want to install Rust on the computer which hosts the App.
Amongst other things, what I have tried is:
Clone https://github.com/leptos-rs/start-axum
Run
cargo leptos watch
Open http://127.0.0.1:3000/
The website loads and is interactive 👍
Run
cargo leptos build
Double click on the target/release/....exe generated exe
Open http://127.0.0.1:3000/
The website loads but is not interactive
Copy the target/release/....exe generated exe to sit next to, and then inside, target/site
Double click on that generated and copied exe
The website is still not interactive
Apologies because I have a feeling my question is both obvious and documented, but I have tried many things and searched many places and found no answers. Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions