Skip to content

xerions/exrm_reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExrmReload Build Status

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.

Usage

  1. Add exrm_reload to your list of dependencies in mix.exs:

    def deps do
        [{:exrm_reload, github: "xerions/exrm_reload"}]
    end
  2. Ensure exrm_reload is started before your application:

    def application do
        [applications: [:exrm_reload]]
    end
  3. Run reconfiguration when you want it:

    > ReleaseManager.Reload.run

    or you can specify application's list for reconfiguration:

    > ReleaseManager.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.

About

Reload Elixir/Erlang applications configuration at runtime

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages