Simple as that with cask:
1 2 |
brew tap caskroom/versions brew cask install java8 |
Elixir |> Phoenix |> Development
Father, Husband, Web Geek.
Elixir, Phoenix, Bots
Simple as that with cask:
1 2 |
brew tap caskroom/versions brew cask install java8 |
Long story short, but by default SSH daemon does not open ports to the internets when you make remote port forwarding, e.g. allows to connect to ports from localhost only.
That’s smart, of course.
To allow connecting from the internets to your new ports you need to add changes to sshd config /etc/ssh/sshd_config:
Add there following line:
1 |
GatewayPorts yes |
Now when you do
1 |
ssh -v -R 8080:localhost:4000 user@312.434.53.23 -i ~/.ssh/key.pem |
You will be able to make a request from outside 🙂
1 2 3 4 5 6 7 8 9 10 11 12 13 |
iex(8)> :observer.start() 14:26:19.123 [error] ERROR: Could not find 'wxe_driver.so' in: /Users/alex/.asdf/installs/erlang/20.0/lib/wx-1.8.1/priv {:error, {{:load_driver, 'No driver found'}, [ {:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]}, {:wx, :new, 1, [file: 'wx.erl', line: 115]}, {:observer_wx, :init, 1, [file: 'observer_wx.erl', line: 98]}, {:wx_object, :init_it, 6, [file: 'wx_object.erl', line: 372]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]} ]}} |
This means you don’t have wxWidgets installed.
I have Erlang installed with asdf
tool, highly recommended using it for Erlang and Elixir installations.
So if you have Erlang already installed, uninstall it first:
1 |
asdf uninstall erlang 20.3 |
Then you need to install wxWidgets:
1 |
brew install wxmac |
Check whether you have wxWidgets installed correctly:
1 |
wx-config --version |
(it should show a version number)
After that you need to install Erlang back:
1 |
asdf install erlang 20.3 |
Voila, you can start observer from your IEx shell:
1 |
:observer.start() |