OTP only works with "pleroma@127.0.0.1" node name
I am trying to run multiple OTP instances on the same machine. By default they always use "pleroma@127.0.0.1" for the node name. I am able to override this by doing:
Environment=ELIXIR_ERL_OPTIONS='-name whatever@127.0.0.1'
in the service file, or prepending it to the start command on the cli.
However, when you try to use pleroma_ctl it will automatically connect to "pleroma@127.0.0.1". I discovered this when copying my config to the database overwrote the config for my other otp instance.
If you try doing ELIXIR_ERL_OPTIONS='-name whatever@127.0.0.1' pleroma/bin/pleroma_ctl
you will get an error telling you the node is in use. If you remove ELIXIR_ERL_OPTIONS then it tells you the node is down.
The only way I have been able to admin multiple pleroma OTP on the same machine is, by stopping all the servers, changing the node name of the one I want to work on to "pleroma@127.0.0.1" and then using pleroma_ctl.