Name: exrm_reload
Owner: xerions
Description: Reload Elixir/Erlang applications configuration at runtime
Created: 2015-10-10 07:10:50.0
Updated: 2018-02-21 07:53:11.0
Pushed: 2016-08-24 08:38:17.0
Size: 16
Language: Elixir
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Build new sys.config from conform config and apply it at runtume.
It uses conform_schema
and conform_config
command line flags which are set on exrm startup script.
Add exrm_reload to your list of dependencies in mix.exs:
deps do
[{:exrm_reload, github: "xerions/exrm_reload"}]
Ensure exrm_reload is started before your application:
application do
[applications: [:exrm_reload]]
Run reconfiguration when you want it:
leaseManager.Reload.run
or you can specify application's list for reconfiguration:
leaseManager.Reload.run [:hello, :exd, :ecdo]
It works with the releases are builded via exrm
. You just call it by rpc from OS shell:
$ you_application rpc Elixir.ReleaseManager.Reload run
The test application uses xerions forks of exrm and conform but it can work with the original exrm version >= 0.19.7
and conform. Just override it.