[erlang-questions] Name Issues
Wed May 8 14:32:38 CEST 2013
Lee Sylvester <lee.sylvester@REDACTED> writes:
> So, I'm having trouble setting the long name for a release. It used
> to work fine, but now I'm getting noname@REDACTED as my app name. I'm
> starting it using:
> rel/myapp/bin/myapp console -mnesia dir '"/Users/leesylvester/tmp/Mnesia.myapp.node1"' -name myapp
> I know I can use net_kernel:start to set the name, but if I do this, I
> still can't connect to other nodes on the same host that started
> correctly. How am I supposed to pass the name to the release when
> starting it?
The start scripts generated by rebar doesn't do anything with emulator
arguments passed on the command line. You need to put "-name myapp"
in the vm.args file instead.
More information about the erlang-questions