<div dir="ltr"><div>Hello,<br></div><div><br></div><div>I have simple test application with test.app.src file, test_app.erl and test_sup.erl</div><div><br></div><div>Also i want to read config in my application. I have app.config:</div>
<div><br></div><div>[<br> {my_app_config, <br> [{key1, "val"}]}<br>].</div><div><br></div><div>I run my application:</div><div><br></div><div>erl -boot start_sasl -config app.config -s test_app</div><div><br></div>
<div>And now, after application successful starting i try to read my config:</div><div><br></div><div>>application:get_env(test_app, my_app_config).</div><div>undefined</div><div><br></div><div>Why? How can i correctly read config file?</div>
<div><br></div><div>Thank you.</div></div>