Skip to content

Instantly share code, notes, and snippets.

@ryanwinchester
Created September 5, 2018 18:14
Show Gist options
  • Select an option

  • Save ryanwinchester/0b46edc99b3e2b2f71cd36428dc493cf to your computer and use it in GitHub Desktop.

Select an option

Save ryanwinchester/0b46edc99b3e2b2f71cd36428dc493cf to your computer and use it in GitHub Desktop.
You can run observer locally for a remote node
#!/bin/sh
set -e
BEAM_PORT=32815
EPMD_PORT=4369
COOKIE='cookiestring'
ssh -f -o ExitOnForwardFailure=yes \
-L "$EPMD_PORT:localhost:$EPMD_PORT" \
-L "$BEAM_PORT:localhost:$BEAM_PORT" \
[email protected] \
sleep 10
iex --name [email protected] --cookie $COOKIE \
-S mix run -e 'Node.connect(:"[email protected]")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment