Localhost running on mac.. Can I view it on my Android phone?

前端 未结 11 1190
遥遥无期
遥遥无期 2021-01-30 04:59

Running a ruby on rails project on my mac. I need to test it on my android phone. Is there a way to view my mac localhost on my android phone?

11条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 05:46

    Additionally, if you want to test on Android/iOS device a PWA Apps developed with Angular, you will need to use:

    ng serve --host 0.0.0.0 to start up the server CLI.

    If you receive "Invalid Host Header", uses:

    ng serve --host 0.0.0.0 --disableHostCheck true

提交回复
热议问题