-
For Linux and and Mac, we are able to use bash scripts for sidecars by We would like to similarly use a batch script on Windows. But it seems that For additional context, we are bundling our server as resources (which |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
On Linux, we have a file named #!/bin/bash
rootdir=`dirname "$0"`
cd "$rootdir"
cd ../lib/cone/server/
./server $@ Similarly on Mac, we have a file named #!/bin/bash
rootdir=`dirname "$0"`
cd "$rootdir"
cd ../Resources/server
./server $@ And on Windows, we were hoping to run a cd %~dp0
server\server %* But since the |
Beta Was this translation helpful? Give feedback.
-
We are not rust experts, and this is how we are currently running our server: let (mut rx, _) = Command::new_sidecar("trame")
.expect("failed to create sidecar")
.args(["--server", "--port", "0", "--timeout", "10"])
.spawn()
.expect("Failed to spawn server"); Maybe we can do something Windows-specific where we actually run the command line? |
Beta Was this translation helpful? Give feedback.
-
I have found a work-around: I was able to create a stand-alone executable from C++ that essentially does the same thing as the batch file. I'm going to close this, but if anyone recommends any simpler way, feel free to comment. |
Beta Was this translation helpful? Give feedback.
I have found a work-around: I was able to create a stand-alone executable from C++ that essentially does the same thing as the batch file.
I'm going to close this, but if anyone recommends any simpler way, feel free to comment.