Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

One recommendation: default values for config #31

Open
atedja opened this issue Oct 14, 2018 · 0 comments
Open

One recommendation: default values for config #31

atedja opened this issue Oct 14, 2018 · 0 comments

Comments

@atedja
Copy link

atedja commented Oct 14, 2018

We should add default values to the Config part. Something along this line:

Configuration values when not explicitly specified in the environment variables should point to their default values, which should run the application under a local/test environment. If application requires backing services to operate (such as a database), then the default values should point to the backing resources running on the same host machine. For example, if application requires PostgreSQL, then if the PostgreSQL host is not specified in the environment variable, it should point to localhost:5432.

Configuration that do not have default values, such as credentials, should be left unspecified, and application should behave accordingly when those values are left blank (e.g. hard fail if credentials are missing).

Default values can be specified in a separate configuration file but treated as constants, overridable only by environment variables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant