ninenines / erlang.mk

A build tool for Erlang that just works.
https://erlang.mk
ISC License
578 stars 241 forks source link

tutorial: passing args to "erl" #854

Closed eugene-panferov closed 4 years ago

eugene-panferov commented 5 years ago

reading the erlang.mk tutorial, I am failing to find out how to pass command line arguments to the "erl" command, OR OTHERWISE set a node-name to the erlang system associated with the release.

P.S. Or maybe i am missing the whole idea how to run erlang.mk releases.

essen commented 5 years ago

Because they're Relx releases, so the documentation is light in Erlang.mk. You'll need to edit the config/vm.args file.

eugene-panferov commented 5 years ago

but this file was generated by erlang.mk -- is it legit to edit it? (it was a natural expectation: there must be a Makefile variable that erlang.mk passes into this file)

essen commented 5 years ago

Those two files are configuration files that Relx includes in the release. They're definitely OK to edit. The other relevant file is relx.config. At this time you can't configure these things from the Makefile itself.

eugene-panferov commented 5 years ago

Thanx.