This repo is configured using a file based settings approach via the config gem (see config/settings.yml
for an example).
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 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.
Feature flags for Publish are still stored in the settings.yml
file. The FeatureService
class provides a simple interface for checking publish feature flags.