-
Notifications
You must be signed in to change notification settings - Fork 617
How to add configuration settings
Cristian Douce edited this page Oct 31, 2013
·
6 revisions
Follow this checklist whenever you need a new config value so the rest of us can continue coding happily with your changes.
- Add the configuration key to
config/sample.json - If the setting is intended to be shared with the client, then list it at
clientkey on the same file. - Edit
lib/config/env.jsto map the recently added keys. (Note: Environment variables name should be the same as the config variable name but in ALL_CAPS. Follow the examples in that file.) - Restart your app to get new
configkeys merged to yourconfig/<environment>.jsonsettings. (Note:clientsettings won't be merged) - If needed, edit your
config/<environment>.jsonfile used or your environment settings for custom environment settings (non-default). - If new
clientsettings added (check2.) make sure your co-developers know they have to manually add those to theirconfig/<environment>.jsonsettings. - Add those values to
env varsat your running environments so your new code works.
DemocracyOS developers should update all of these.
Visit our official website - Developed by Democracia en Red and contributors from the world over!