<div dir="ltr">Hello,<div><br></div><div> I have a library being built that is leveraging environment variables. There is a line in the library include file that looks like</div><div><br></div><div>-define(CONST, lib:get_env(Key,Default)).</div>
<div><br></div><div style>the lib:get_env function simply checks</div><div style><br></div><div style> application:get_env(lib, Key) % in order to check the library.app first</div><div style> and then</div><div style> application:get_env(Key) % check for local overrides </div>
<div style><br></div><div style> However when i place variables like the following in the main example.app file in ebin/</div><div style><br></div><div style><div>{application,example,</div><div> [{description,[]},</div>
<div> {env,[{'COWBOY_HTTP_PORT',9090}]},</div><div> ......</div><div><br></div><div style>Nothing is getting read. I am not sure if this needs to be in rel/files/app.config instead?</div>
<div style><br></div><div style>Appreciate any help here.</div><div style><br></div><div style>-AD</div></div><div style><br></div><div style> </div></div>