You can either make app2
an included application of app1
, by adding this to app1.app.src
:
{included_applications, [app2]}
Or in your reltool.config
, mark app2 as load-only, like this:
{rel, "myrelease", "1",
[
kernel,
stdlib,
sasl,
app1,
{app2, load}
]},