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.
Start.
Import secrets from config/settings.rs.
settings.rs checks for the value of the variables in both the shell and the config.toml file.
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.
config/settings.rs
.settings.rs
checks for the value of the variables in both the shell and theconfig.toml
file.References -> 1, 2.