dwyl/learn-phoenix-framework

How to run localhost in browser when connected to VM via ssh

Closed this issue ยท 4 comments

We are running our phoenix application in a virtual machine. We had some trouble getting this started, and found out we need to run it as
sudo mix phoenix.server instead of just mix phoenix.server.

We can make requests with curl and see the response from the server, however we have not been able to figure out how to go to localhost to view the changes to the site from here & check if it runs as expected.

We tried going to the IP address that we ssh'd into with :4000 and it just hung.

Need this for checking healthlocker/healthlocker#852

@nelsonic thanks! That works a charm โœจ ๐Ÿ’ƒ

@katbow please close if answered. ๐Ÿ˜‰

yep, all good. thanks again ๐Ÿ™‚