Skip to content

Move configuration external to code #9

Closed

Description

@jjpr-mit

A .ini or .yml (or whatever) file, and infrastructure for making config stuff available throughout the project.

Make a config.example.yml, add 'config.yml' to .gitignore so users can add credentials without accidentally committing.

Things to include:

  • directory for local data cache (e.g. needs to be a larger mount than home on OpenMind)
  • SQLite file location
  • Postgres connection information
  • Logging level and location
  • AWS credentials and which profile to use

Activity

  1. mschrimpf commented on Sep 17, 2018

    @mschrimpf
    Member

    most frameworks I know solve this with environment variables. I'm doing that a lot in dicarlolab/candidate_models and started doing it with the recent BSC_BOTO3_SIGN (#98).

  2. mschrimpf commented on Apr 27, 2019

    @mschrimpf
    Member

    we're doing an okay job on this, and it's not crucial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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