Hi everyone! Wondering if anyone else is seeing the same issue as I am.
While starting my app, I need to force a nodename, this is mainly so that my freeswitch instance can connect properly and data can flow back and forth between the two systems.
However when I run rebar3 shell, and then run node(). it is ALWAYS nonode@nohost
Is there a reason why this is failing? Is there some way to force it? Or should I just write a shell script that launches and passes the proper info through from the start?
vm_args is not a valid entry for rebar3 shell configuration, where did you find it?
To specify name and cookie you can use distribution options which will act as intended.
However, if you need something more than name and cookie, you can’t specify vm.args in rebar.config because rebar3 itself is a VM that reads that config and it’s impossible to apply vm.args after VM is started.
What you can use is ERL_FLAGS env variable to specify args file, e.g.: env ERL_FLAGS="-args_file config/vm.args" rebar3 compile.
relx entry is ok, but that’s applied only to the release, not rebar shell.