Recommended way to change node name of a Phoenix app?

I would like to run two releases of same Phoenix app on the same server. However when I do I get

Protocol 'inet_tcp': the name myapp_interface@my_host seems to be in use by another Erlang node

Is there any recommended way to set node name for a Phoenix release? Ideally both should be run as services by systemd.

Take a look at these: mix release — Mix v1.17.3

2 Likes