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

allow for initializers to draw their values from environment variables #44

Open
2 tasks
elrayle opened this issue Oct 14, 2021 · 0 comments
Open
2 tasks

Comments

@elrayle
Copy link
Member

elrayle commented Oct 14, 2021

A lot of application customization happens in initializers (e.g. /config/initializers/qa.rb and qa_server.rb). From these files, you can configure colors for graphs, whether to show graphs or data tables or both, the time period behind these, time zone, caching controls, etc. To allow these to be easily set, the values in the initializers will be drawn from environment variables that are set in .env.

  • update .env.example to show which can be configured
  • update initializers to draw values from .env, keeping current values as defaults if an environment variable isn't setup

Related work

Already customizable...

  • which authorities to use - by loading on to EFS drive (I believe this would allow for local authorities defined in yaml files.)
  • .env file - by putting in S3 bucket

May also want to consider how an application would customize...

Questions

  • Where do graphs go when they are generated?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant