exrm

Parametrizing node name in Elixir Exrm

只谈情不闲聊 提交于 2019-12-22 07:09:33
问题 I want to use Exrm with Erlang distributed on a single machine. I need to create multiple releases that differ only with node name. I know, I can configure node name in rel/vm.args , but it will be static. Can I somehow generate multiple releases with different node name? 回答1: I am researching the same issue. A possible approach: The rel/vm.args supports OS environment variables parametrization. So you can do something like ## Name of the node -name ${MY_NODE_NAME} ## Cookie for distributed

Elixir exrm release crashes on eredis start_link

天涯浪子 提交于 2019-12-10 16:06:12
问题 I'm fairly new to Elixir and this is the first app that I'm attempting to release using exrm. My app interacts with a Redis database for consuming jobs from a queue (using exq), and also stores results of processed jobs in Redis using eredis. My app works perfectly when I run it via iex -S mix , and it also runs great when compiled into an escript. However when I use exrm, the application compiles without any issue, but it crashes when I run it. This is the crash output : $ ./rel/my_app/bin

Parametrizing node name in Elixir Exrm

可紊 提交于 2019-12-05 10:51:59
I want to use Exrm with Erlang distributed on a single machine. I need to create multiple releases that differ only with node name. I know, I can configure node name in rel/vm.args , but it will be static. Can I somehow generate multiple releases with different node name? I am researching the same issue. A possible approach: The rel/vm.args supports OS environment variables parametrization. So you can do something like ## Name of the node -name ${MY_NODE_NAME} ## Cookie for distributed erlang -setcookie ${MY_COOKIE} Then you would invoke in batch file: export RELX_REPLACE_OS_VARS=true export