Need a deployment guide #4509
Replies: 3 comments 4 replies
-
|
Generally speaking what you need is to set the Depending on the specifics of your setup, you may actually need to set this to Feel free to share specific information about specific problems you're facing. |
Beta Was this translation helpful? Give feedback.
-
|
I think I am trying to do what was described in one of the links, but I'm not 100% sure. My reverse proxy setting is: I'm serving it under another port because I had problems with 3000 (something related to wasm32 and secure ports or something). Sorry for being vague, but much of this web stuff is above my head. My environment variables LEPTOS_... reflect this. Using curl, I see that my app is accessed and serves the page title, and then it's a 404. I've set What I do see in page-source is that I'm trying to fetch href="[/pkg./....] this is probably wrong. I should probably be trying to get /finder-app/pkg (no ?). So my first question is, how do I make the client to use the right prefix? I had hoped set_server_url would do that. let _ = Effect::new(|_| { Not sure if that is actually correct. ---- update ------ Setting LEPTOS_SITE_PKG_DIR, and the hardcoded path to the stylesheet, I got 200 on .js, .css and .wasm files It got to calling server functions, but here it has the wrong path (again), something I thought would be solved by setting the server_fn_prefix option, but that didn't have any effect. Still calling /api instead of /finder-app/api (which I had hoped it would do). ---- and another update ---- Day 4 or deploy attempts over. ---- I suck at giving up ---- I'd be happy if someone tells me this is the -wrong- solution but I have to take it for now. |
Beta Was this translation helpful? Give feedback.
-
|
So, I will try to summarize my solution, now that I know it works. --- Apache Config --- --------- in fn App() -> impl IntoView -------------------- Think this is it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While Leptos /ssr is awesome, there really needs to be a way to deploy it. Where do I find how to deploy it on one of the most standard of setups, my own server and Apache (and I guess reverse proxy, which is what I'm trying). I've been at it for 3 days now. Always something that fails. I knew this was somewhat difficult when I tried to get it work some month ago but (and most worked then) but I did not anticipate that I would fail for 3 days when trying to do that again.
Is it documented anywhere how to deploy in under a /myapp path?
Beta Was this translation helpful? Give feedback.
All reactions