When I run the app using cargo run --release from the project root, the app finds the config directory ./config. However, when I run the app calling the ./target/release/<app name>, the reference is lost/broken.
The source ./src/config.rs references the config directory as following:
This should not happen in any normal Unix shell. How are you opening the file?
Docker or no docker, config files are best placed at fixed, pre-determined locations. If you don't want to do that, you can simply pass the path as an arg.
In the event I copy the app into /usr/local/bin that is included in my PATH, given my current setup, would that mean I need to include the config/ in the /usr/local/bin?