Note that if you deploy your app to Heroku using the native release mechanism that comes with Mix since Elixir 1.8, you may simply ssh into the running dyno and remote into the running BEAM node:
# In your local terminalheroku ps:exec# In the dyno_build/prod/rel/your_app/bin/your_app remote
This works out of the box.