In this case I guess you can simply bin/foobar remote
.
start_iex
starts the system and attaches iex shell. Since application is already started it won’t allow you start it again with the same name.
And is better to SSH onto box or to connect to remote iex session directly from my local computer?
While remsh
might look like a convenient option that allows to run :observer
etc… Please take a look at “Erlang’s remsh is dangerous”.
Personally so far I’m satisfied with bin/release_name remote
. Plus phoenix_live_dashboard replaces most of the :observer
I use.