Release and Application Config

chandru chandrashekhar.mullaparthi@REDACTED
Mon Oct 3 11:25:34 CEST 2005


Hi,

On 03/10/05, Eranga Udesh <casper2000a@REDACTED> wrote:
> Hi,
>
> I have a ".app" file with "env" parameter for a certain application. When I
> changed that and run the application in shell mode, changes are available in
> the next run.
>
> But after I made the release, even though I change the .app file "env"
> parameter in the release directory, changes don't appear in the next run of
> the release in embedded mode. To apply the changes what I am currently do is
> re-create and re-install the release.
>
> Do .app parameters get cached in .boot or some other binary file?

Yes - that is correct. They are in the boot file. You can examine the
contents of the boot file as follows.

1> {ok, Bin} = file:read_file("myapp.boot").

2> io:format("~p~n", [binary_to_term(Bin)]).

> How can I
> change that without have to re-create and re-install the release?

Store your environment variables in a file called sys.config and
invoke your system with the -config flag.

erl -boot myapp.boot -config sys

cheers
Chandru



More information about the erlang-questions mailing list