Diffconfig
Provides mix tasks to dump and compare application configurations, with support for setting environment variables.
Examples
Dump the current configuration:
mix diffconfig.dump /path/to/config1.termRead the configuration:
mix diffconfig.read /path/to/config1.termMake some changes to your configuration, and then dump it again:
mix diffconfig.dump /path/to/config2.termCompare them:
mix diffconfig /path/to/config1.term /path/to/config2.termYou can also use it to compare the configurations for two different environments:
MIX_ENV=dev mix diffconfig.dump dev.config.term
MIX_ENV=prod mix diffconfig.dump prod.config.term
mix diffconfig dev.config.term prod.config.term
[
{:changed, [:your_app, :value], "some-dev-value", "some-prod-value"},
# ...
]If you want to see the fully evaluated configuration, you can dump it and immediately read it back:
mix diffconfig.dump | xargs mix diffconfig.readUse the following for more information about each command:
mix help diffconfig
mix help diffconfig.dump
mix help diffconfig.readInstallation
def deps do
[
{:diffconfig, "~> 0.2.0"}
]
endLicense
See LICENSE.