Rails 4.2 server; private and public ip not working

吃可爱长大的小学妹 提交于 2019-11-30 18:06:59

The default host for Rails servers has changed in 4.2. It now runs on localhost, which means it'll only accept connections from the host IP. You'll need to run rails server -b 0.0.0.0 to start your server.

Please see the 4.2 release notes, section 3.3 for more details.

To run as public -b and in a specific port use -p :

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