You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to document our environment variables and centralise our various settings. I would like to propose that we use config gem which creates a yaml file for various environment (like .env) files.
Benefits:
can still use environment vars to override settings
can namespace different config/settings
add inline comments relating to want each config/setting is for
it is possible to "refresh" the settings without restarting the servers using Settings.reload!
When we start needing to us feature flags we can also use these yaml files to store the flags in.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We need to document our environment variables and centralise our various settings. I would like to propose that we use config gem which creates a yaml file for various environment (like .env) files.
Benefits:
Settings.reload!
When we start needing to us feature flags we can also use these yaml files to store the flags in.
example:
Refer to alphagov/forms-admin#118 as an example
Beta Was this translation helpful? Give feedback.
All reactions