Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. ```bash
  2.  
  3. # ssh to remote
  4.  
  5. localhost$ ssh -p 30000 my_app@diamond
  6.  
  7. my_app@my_app.com$ epmd -names
  8. epmd: up and running on port 4369 with data:
  9. name my_app at port 43108
  10. my_app@my_app.com$ exit
  11.  
  12. # set up ssh tunnel
  13.  
  14. localhost$ ssh -p 30000 -N -L 43108:localhost:43108 -L 4369:localhost:4369 my_app@my_app.com
  15.  
  16. # open new terminal session
  17.  
  18. localhost$ scutil --set HostName "my_app"
  19. localhost$ erl -sname debug -setcookie my_app -run observer
  20.  
  21. # gotchas
  22. #
  23. # remember to build exrm release with :runtime_tools added to :applications.
  24.  
  25. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement