[erlang-questions] Sending environment values for rebar-packaged apps
Konstantin Tcepliaev
f355@REDACTED
Mon Jun 17 16:33:45 CEST 2013
Hi,
Have you tried specifying the same command line flags after "start"? Like this:
sh rel/mynode/bin/mynode start -<app> key1 value1 key2 value2 ...
I think that should work: https://github.com/basho/rebar/blob/master/priv/templates/simplenode.runner#L115
Cheers,
--
Konstantin
17.06.2013, 18:16, "Yash Ganthe" <yashgt@REDACTED>:
> 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
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list