dwyl / learn-phoenix

:fire: Phoenix is the web framework without compromise on speed, reliability or maintainability! Don't settle for less. :rocket:
650 stars 45 forks source link

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

Closed katbow closed 7 years ago

katbow commented 7 years ago

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 https://github.com/healthlocker/healthlocker/issues/852

nelsonic commented 7 years ago

@katbow did you see: /production-deployment.md#redirect-tcp-port-80-to-port-4000-where-our-app-is-listening ? 🤔

katbow commented 7 years ago

@nelsonic thanks! That works a charm ✨ 💃

nelsonic commented 7 years ago

@katbow please close if answered. 😉

katbow commented 7 years ago

yep, all good. thanks again 🙂