[erlang-questions] Name Issues
Wed May 8 15:38:43 CEST 2013
Thanks, guys. It was the vm.args file that solved it. These things aren't overly obvious ;-)
Btw, Magnus, it seems you can add arguments when running rebar, so long as they're not duplicated in the vm.args file. I have been passing a -port flag to my app for weeks, now, and it gets through fine.
On 8 May 2013, at 13:32, Magnus Henoch <> wrote:
> Lee Sylvester <> writes:
>> So, I'm having trouble setting the long name for a release. It used
>> to work fine, but now I'm getting 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