-
Notifications
You must be signed in to change notification settings - Fork 9
More Configuration Options If Config File Not Found In Default Location #345
Description
Currently running saito requires that there be a configuration file present under the current directory/configuration however this may not match realistic expectations when running saito in production. When executing the saito binary from a different directory it panics with thread 'main' panicked at 'Failed to read configuration.: configuration file "/Users/zyler/github/saito-live/configuration/base" not found', /Users/zyler/github/saito-live/saito-rust/src/consensus.rs:136:44
Options for handling this gracefully would be:
-
Sane defaults without a configuration file
-
Allow path to configuration file to be specified via command line ie
saito --config=/path/to/config.ymlor via environment variable ie $SAITO_CONFIG_PATH -
If file not found search for configuration in a user-standard directory such as $HOME/.saito
-
If user config directory is not found search in os-specific config path for instance /etc/saito on linux
This error I encountered when using homebrew to install saito on my mac, and realized the node operator onboarding experience could be improved with better configuration options.
(https://github.com/saito-live/homebrew-saito to try installation via homebrew on mac.)