Heroku has a great feature called heroku ps:exec
which allows you to connect to running nodes. You can use this command to connect your elixir nodes easily. And debug your nodes like in your network.
Let's start with Procfile
To run a named app at heroku your procfile should specify the app name like:
web: MIX_ENV=prod elixir --sname coolelixirapp -S mix run --no-halt