I've went through the elixir phoenix local development set up.
In the terminal, after
nanobox run mix phx.server, I get:
If you run a server, access it at >> 172.20.0.3
[info] Running HarpoondbWeb.Endpoint with Cowboy using http://0.0.0.0:4000
So the server is running as expected.
I have run
nanobox dns add local phoenix.local successfully, and I see the entry in my hosts file as expected:
172.20.0.3 phoenix.local # dns added for 'cbef46128d79d9b723cc9bbee56dfa82_dev' by nanobox
On the browser when I try to access the running local site, these all time out:
When I ping
172.20.0.3, I get:
PING 172.20.0.3 (172.20.0.3): 56 data bytes
Request timeout for icmp_seq 0
When I run
docker container ls, I get:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a973b92504ae nanobox/build "/opt/gonano/bin/nan…" About an hour ago Up About an hour nanobox_cbef46128d79d9b723cc9bbee56dfa82_dev
daaf2704a4c8 nanobox/postgresql "/opt/gonano/bin/nan…" 3 hours ago Up About an hour nanobox_cbef46128d79d9b723cc9bbee56dfa82_dev_data.db
f08502ee8f76 nanobox/bridge "/opt/gonano/bin/nan…" 4 hours ago Up 2 hours 0.0.0.0:1194->1194/udp nanobox_bridge
What am I missing? Any tips appreciated!
Note: I've deployed the same app to Digital Ocean successfully. But am still having issues accessing local.