Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Translator binary from arbitrary location #451

Closed
Sjors opened this issue Feb 21, 2023 · 1 comment
Closed

Run Translator binary from arbitrary location #451

Sjors opened this issue Feb 21, 2023 · 1 comment

Comments

@Sjors
Copy link
Collaborator

Sjors commented Feb 21, 2023

Currently you have to run the Translator from the roles/translator or it will fail.

cargo run -p translator
…
   Compiling translator v0.1.0 (/home/stratum/src/stratum/roles/translator)
    Finished dev [unoptimized + debuginfo] target(s) in 33.09s
     Running `target/debug/translator`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', roles/translator/src/main.rs:46:43

It's better if we can run it from anywhere, especially once cargo install works (#450). This also makes it easier to work with systemd (#446).

@Sjors
Copy link
Collaborator Author

Sjors commented Mar 6, 2023

Turns out you can copy proxy-config.toml to some other place, modify it to your liking, and then point to it:

cargo  run -p translator_sv2 -- -c ~/.stratum/proxy-config.toml

@Sjors Sjors closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant