Skip to content

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

@elrayle

Description

@elrayle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions