Hello!
I'm new to Tauri and trying something off the golden path (I think).
Put simply, I have a binary that, when executed, runs a server on localhost:4000. This binary contains all of the logic for rendering a web view (Elixir Phoenix LiveView).
I'd like to leverage Tauri to deploy this app natively. The way I was thinking of doing this was by doing the following:
- Packaging the binary into Tauri via either external_binaries or resources– so far I have only gotten the server to run by using
resourcesand launching the binary via a child process inmain.rs - Pointing the window launcher to localhost:4000.
- Setting up event listeners to kill the server if the window is killed.
I am able to do step 1 above. However, I am having trouble getting the window launcher to render the content coming from localhost:4000. Attached is my main.rs and my Tauri config.
Any ideas would be helpful here– thanks for taking a look!