无法访问vmware外部的localhost:3000

时间:2020-01-11 05:24:12

标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-4 ruby-on-rails-5

我在ubuntu的vmware中运行webrick默认ROR服务器。我的主机窗口为Window 10.,但在Window 10浏览器中,我无法访问0.0.0.0:3000。我在Rails代码上有ruby,如何在我自己的机器服务器中托管? 在window10浏览器中,我收到类似以下错误: [错误] [1]

[VMware和真实主机IP快照] [2]

puma.rb


threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
threads threads_count, threads_count


port        ENV.fetch("PORT") { 3000 }


environment ENV.fetch("RAILS_ENV") { "development" }

# Specifies the `pidfile` that Puma will use.
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }


plugin :tmp_restart


  [1]: https://i.stack.imgur.com/N65uJ.png
  [2]: https://i.stack.imgur.com/At2Rz.png

0 个答案:

没有答案
相关问题