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

Yash Ganthe yashgt@REDACTED
Mon Jun 17 16:15:55 CEST 2013


This is when I start my node using erl.

My question is about when I start the node as a package(without using
erl).


On Jun 17, 6:58 pm, Bengt Kleberg <bengt.kleb...@REDACTED> wrote:
> Greetings,
>
> "erl -<app> key1 value1 key2 value2 ..."
>
> bengt
>
>
>
>
>
>
>
>
>
> On Mon, 2013-06-17 at 13:48 +0000, yas...@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-questi...@REDACTED
> >http://erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list