What do you mean by 5 applications? Application in Erlang sense, or in OS sense?
If you mean you have something like Umbrella apps, then making one release for all of them, yes it would work. As long as you package them together in one release and start them together, it would work. If you are making different releases for different application, then I’m not sure, but it should work this way. IDK if the different releases use different
env.sh files or not, but if they do you should be able to update them too.
If you mean 5 different applications on 5 different BEAMs, then you have 5 different releases. Then you should change each release accordingly. The way does not change, just that you have 5 files to edit, probably once and for all.
Another way is also to start you release like
RUN_ERL_LOG_MAXSIZE=100000000 RUN_ERL_LOG_GENERATIONS=20 /path/to/realease/bin/name start. You get the idea. You can also put these variables in files like
~/.bashrc (or another one based on your shell). It does not make any difference. Just make sure you close your shell after editing
~/.basrc so changes would apply. Check with
env to see if they are set.
Wherever you put the variables, just don’t forget to
export them. This little thing bite me just some hours ago!