Accessing meteor server on LAN

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-14 02:29:21

问题


I'm currently using Reaction Commerce (https://github.com/ongoworks/reaction) on my Ubuntu VM but I'm unable to view it anywhere else on my LAN. When I launch the server I get a simple "App running at http://local:3000" but when I try to access this from another PC on the LAN (http://local IP:3000) I am redirected to that PCs localhost which isn't running anything.

I've tried changing the settings file and Dockerfile to read 0.0.0.0 instead of localhost but it seems to make little difference as meteor continuously says the localhost is still being used.

Any insight on what exactly needs to be changed would be much appreciated!


回答1:


Remove the force-ssl package. In the app's working directory:

meteor remove force-ssl

This will stop it redirecting. (Mean't to force everyone not using 127.0.0.1 or localhost onto the ROOT_URL with https)



来源:https://stackoverflow.com/questions/25195821/accessing-meteor-server-on-lan

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!