Created
February 2, 2016 20:19
-
-
Save ulve/d6bbb8bafaa3d8292fa2 to your computer and use it in GitHub Desktop.
Connect to remote phoenix node with observer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On the phoenix node | |
# if production mode | |
MIX_ENV=prod PORT=4001 elixir --name [email protected] --cookie 123 --erl "-kernel inet_dist_listen_min 9001 inet_dist_listen_m 9001" -pa _build/prod/consolidated -S mix phoenix.server | |
# if debug mode | |
elixir --name [email protected] --cookie 123 --erl "-kernel inet_dist_listen_min 9001 inet_dist_listen_m 9001" -S mix phoenix.server | |
# On the observing node | |
# Terminal 1, start SSH tunnel | |
ssh -N -L 9001:localhost:9001 -L 4369:localhost:4369 [email protected] | |
# Terminal 2, start observer | |
erl -name [email protected] -setcookie 123 -run observer | |
# then in observer window, connect to [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is
-pa _build/prod/consolidated
necessary?