xerions/exrm_reload

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

Homepage:

Size: 16

Language: Elixir

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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

    application do
    [applications: [:exrm_reload]]
    
    
  3. 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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.