Use dynamic/configured erlang app/node name with distillary

I see distillery now provides support for dynamic vm args. can anyone please direct me how can I set, --name option of vm.args from enviornment variable (because I am running two apps on the same machine) and I would get

[staging@dev05 tracker]$ bin/tracker console
Protocol 'inet_tcp': the name tracker@ seems to be in use by another Erlang node

error otherwise

1 Like


You can get the node name from your env.

Somewhere in vm.args:

-name ${NODE_NAME}@

it worked. thanks(I found vm.args created by distillary in rel folder)

You can provide your own vm.args to distillery with set(vm_args: "...path to your own vm.args...").