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

feat: env management #10

Open
dat-adi opened this issue Nov 12, 2022 · 0 comments
Open

feat: env management #10

dat-adi opened this issue Nov 12, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dat-adi
Copy link
Member

dat-adi commented Nov 12, 2022

The current model relies on environment variables needing to be present in the instance of the shell. This is a practice that works for initial testing, but a better alternative would be to extend upon the application to incorporate reading files for initializing the settings instead.

  1. Start.
  2. Import secrets from config/settings.rs.
  3. settings.rs checks for the value of the variables in both the shell and the config.toml file.
  4. Application is run successfully.

References -> 1, 2.

@dat-adi dat-adi self-assigned this Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant