<div dir="ltr"><div>Hello,<br></div><div><br></div><div>Thank you for replies. </div><div><br></div><div>I try to run my application without .config extenstion:</div><div><br></div><div>exec erl -config app -s test_app</div>
<div><br></div><div>Same result.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/9 Slava Yurin <span dir="ltr"><<a href="mailto:yurinvv@yandex.ru" target="_blank">yurinvv@yandex.ru</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Alexander.</div><div> </div><div>Please see <a href="https://github.com/nevar/sys_test" target="_blank">https://github.com/nevar/sys_test</a>.</div>
<div> </div><div>09.01.2013, 20:14, "Alexander 0xAX" <<a href="mailto:anotherworldofworld@gmail.com" target="_blank">anotherworldofworld@gmail.com</a>>:</div><blockquote><div><div class="h5"><div dir="ltr">
<div>Hello,</div><div> </div><div>I have simple test application with test.app.src file, test_app.erl and test_sup.erl</div><div> </div><div>Also i want to read config in my application. I have app.config:</div><div> </div>
<div>[<br> {my_app_config, <br> [{key1, "val"}]}<br>].</div><div> </div><div>I run my application:</div><div> </div><div>erl -boot start_sasl -config app.config -s test_app</div><div> </div><div>And now, after application successful starting i try to read my config:</div>
<div> </div><div>>application:get_env(test_app, my_app_config).</div><div>undefined</div><div> </div><div>Why? How can i correctly read config file?</div><div> </div><div>Thank you.</div></div></div></div><div class="im">
,<p>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></p>
</div></blockquote></blockquote></div><br></div>