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

Document configuration overload order #11

Open
pictographer opened this issue Jun 8, 2022 · 0 comments
Open

Document configuration overload order #11

pictographer opened this issue Jun 8, 2022 · 0 comments

Comments

@pictographer
Copy link
Contributor

pictographer commented Jun 8, 2022

We use the config-rs crate and the clap crate to allow settings to be overridden. Settings come from the following sources in "last one wins" order:

  • Default values in the Rust code
  • Tide Disco's configuration file
  • The organization's configuration file
  • The application's configuration file
  • The command line arguments
  • Environment variables

This is documented in tide-disco/src/lib.rs::compose_settings, but the documentation is a bit out-of-date. We now have the espresso-systems-common crate which should have the organization's config file.

@pictographer pictographer changed the title Document configuraturation overload order Document configuration overload order Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants