mad icon indicating copy to clipboard operation
mad copied to clipboard

No way to set node name with mad

Open xafizoff opened this issue 6 years ago • 8 comments

AFAIK, it is not possible to start node with the given name. Even if I set

-name [email protected]

in vm.args, I get nonode@nohost

xafizoff avatar Mar 05 '19 18:03 xafizoff

Actually, mad can just "generate" start script, so we can start with command

$(mad start)

just like with $(mad attach).

xafizoff avatar Mar 16 '19 18:03 xafizoff

Solved with

$ mad bun beam myapp && tar -xzf myapp.tgz && chmod +x bin/start &&  && bin/start

xafizoff avatar Mar 17 '19 11:03 xafizoff

No no, this is not a solution, you're right mad should do the chmod.

5HT avatar Mar 17 '19 14:03 5HT

And mad start and mad releases are totally different things! Don't mix them in Issues.

5HT avatar Mar 17 '19 14:03 5HT

The issue was not about start or release, it was about node name...

xafizoff avatar Mar 17 '19 14:03 xafizoff

Yeah, but setting name in OTP release is known and trivial task by using vm.args. While MAD release (escriptized) is a bit complicated.

5HT avatar Mar 17 '19 14:03 5HT

I didn't know about beam-release... Anyways in dev-env it's not necessary.

xafizoff avatar Mar 17 '19 15:03 xafizoff

it's not necessary

it could be. when you debug distributed setup (database e.g). Let this issue be open for now.

5HT avatar Mar 17 '19 15:03 5HT