You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a rust project "cargo templ_app" and copied the files of the template example for Rocket from here and compiled it. I've got problems with the request send back to the application, after I see the first webpage from the rocket program. I'm absolutely new to rust and Rocket and searching for a forum or community where I could ask some simple questions. Can some tell me where are a good place for that?
Ok, may be here is the best place...
The problem is: I have no GUI on my web server. I'm running a apache web server. Because of this the output form a Rocket example on 127.0.0.1:8000 can I never see with a browser calling http://localhost, on that machine, to check what does happens. So I does a proxy forward in the Apache configuration to a (non existing) folder: i.e. http://mydomain.tld/rust_template This will forwarded to the small compiled rust template example program. This hat i.e. worked for the hello example with the output "Hello Rocket".
But the problem is, with the template example are more files to load. I describe: when I click on http://mydomain.tld/rust_template it shows me the output with just one link called "Handelbars". But the link what comes next is not correct. The link is http://mydomain.tld/hbs, but sure the is no /hbs folder under my domain. The link shout be http://mydomain.tld/rust_template/hbs and so on for all other files.
My question is, how in what files have I change this in all template example files and where into the files?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created a rust project "cargo templ_app" and copied the files of the template example for Rocket from here and compiled it. I've got problems with the request send back to the application, after I see the first webpage from the rocket program. I'm absolutely new to rust and Rocket and searching for a forum or community where I could ask some simple questions. Can some tell me where are a good place for that?
Beta Was this translation helpful? Give feedback.
All reactions