[erlang-questions] Sending environment values for rebar-packaged apps

Bengt Kleberg bengt.kleberg@REDACTED
Mon Jun 17 15:58:47 CEST 2013


"erl -<app> key1 value1 key2 value2 ..."


On Mon, 2013-06-17 at 13:48 +0000, yashgt@REDACTED wrote:
> Hi,
> If I have to launch a node with certain environment values I usually
> do:
> "erl -pa ebin -run appname -env [{myvar, 1234}]"
> If I package this as a node using rebar, I can start the node using:
> sh rel/mynode/bin/mynode start
> But how do I set values for the app-specific enviroment vars? I do not
> want to set them in a file as the values will change for every
> invocation and hence I want to send them on the command prompt.
> Thanks,
> Yash
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list