<div dir="ltr">Hello!<div><br></div><div>I have the problem on erlang release upgrade and config includes. I have the follow config structure of sys.config with app.config (that generated dynamically) include:</div><div><br>
</div><div>/usr/local/lib/myapp/releases/1.0.8/sys.config:</div><div>[</div><div>....</div><div>"/etc/myapp/app.config"</div><div>].</div><div><br></div><div>I added new application myapp2 into myapp, and want to upgrade myapp to new version (1.0.9).</div>
<div><br></div><div>Firstly I add the settings for new application myapp2 in app.conf file, and then run upgrade the Erlang application:</div><div><br></div><div>release_handler:unpack_release,</div><div>release_handler:check_install_release,</div>
<div>release_handler:install_release</div><div><br></div><div>The new version of myapp (1.0.9) run the myapp2 application. myapp2 try read the settings and crash due badmatch error, i.e. no settings in config for myapp2. When I put settings for new application myapp2 into sys.config, all works without any problems.</div>
<div><br></div><div>Looks like, release_handler doesn't re-read included config files.<br><div><br></div>-- <br><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div>
<br></div></div></div>
</div></div>