Skip to content

How to add configuration settings

Matias Lescano edited this page Apr 28, 2015 · 6 revisions

Follow this checklist whenever you need a new config value so the rest of us can continue coding happily with your changes.

  1. Add the configuration key to config/defaults.json
  2. If the setting is intended to be shared with the client, then list it at client key on the same file.
  3. Note: Environment variables name should be the same as the config variable name but in ALL_CAPS. Follow the examples in that file.
  4. If needed, edit your config/<environment>.json file used or your environment settings for custom environment settings (non-default).
  5. If new client settings added (check 2.) make sure your co-developers know they have to manually add those to their config/<environment>.json settings.
  6. Add those values to env vars at your running environments so your new code works.

DemocracyOS developers should update all of these.