Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.19 KB

configuration.md

File metadata and controls

39 lines (25 loc) · 1.19 KB

Configuration

This repo is configured using a file based settings approach via the config gem (see config/settings.yml for an example).

Settings vs Environment variables

Refer to the the config gem to understand the file based settings loading order.

To override file based via Machine based env variables settings

cat config/settings.yml
file
  based
    settings
      env1: 'some file based value'
export SETTINGS__FILE__BASED__SETTINGS__ENV1="machine wins"
puts Settings.file.based.setting.env1

machine wins

Any Machine based env variables settings that is not prefixed with SETTINGS.* are not considered for general consumption.

Feature Flags

Find

Feature flags for Find are stored in Redis. The FeatureFlag class is a wrapper around the Redis class that provides a simple interface for setting and checking feature flags.

Publish

Feature flags for Publish are still stored in the settings.yml file. The FeatureService class provides a simple interface for checking publish feature flags.