-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
All configuration is managed in files in the /config directory.
Running script/apply_config without additional parameters will propagate variables in config/base to any file in the repo ending in .source. A copy of the .source file with replaced variables will be saved without the .source extension.
Example
cloudstore/test/config.js.source
# gets copied, variables replaced, and written to...
cloudstore/test/config.js
The non .source files (e.g. config.js) are in .gitignore so that environment specific configurations (like a different developer's laptops) do not result in git commit conflicts.
After running script/apply_config, each Erlang component (like CloudStore) must be recompiled.
script/apply_config
make
To override variables in config/base, simply pass in additional config files to script/apply_config
script/apply_config dev
Variables specified in config/dev will now override config/base and get applied to .source files. Multiple files can be listed and will be applied in order.
script/apply_config dev osx joeslaptop