Rails 4.2 Server port forwarding on Vagrant does not work

后端 未结 5 1183
感情败类
感情败类 2020-12-22 22:44

I have a Vagrant VM with Rails installed with a sample app. The VM is configured to forward the port 3000 (of Rails Webrick server) to my host 3000 port.

co         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 23:10

    Rails 4.2 now binds to 127.0.0.1 by default and not 0.0.0.0.

    Start the server using bin/rails server -b 0.0.0.0 and that should sort it.

提交回复
热议问题