rails s 不启动服务器,没有错误消息
rails s doesn't start server, no error messages
我没能找到以前回答过的问题,除非我遗漏了一个。无论如何,当我尝试启动 rails 服务器时:
vagrant [accounts]> rails s
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-06-06 02:38:50] INFO WEBrick 1.3.1
[2015-06-06 02:38:50] INFO ruby 2.2.2 (2015-04-13) [i686-linux]
[2015-06-06 02:38:50] INFO WEBrick::HTTPServer#start: pid=23016 port=3000
但这就是我所得到的,没有错误消息或任何东西。当然 localhost:3000 会产生 'no data received'
如您所见,我使用的是 Ruby 2.2.2 和 Rails 4.2.1
我在该应用程序的根目录中,已尝试更新 bin。
我正在使用 sqlite3 gem,我已经创建并迁移了数据库。
我确信它与这个特定的 rails 应用程序无关,因为我已经返回并尝试打开现在遇到相同问题的旧项目。最近我在我的虚拟机上从 Ubuntu 12.04 升级到 14.04。我最近还升级了 ruby(我使用 rvm 进行管理)和 rails。我最近还在 heroku 上放了一些东西。所有这些都与 $PATH 混淆了(我不确定这是否相关,我对所有这些东西都很陌生)。只是想详细说明我能想到的可能会产生影响的所有内容。
谢谢!
我最近运行遇到了以下问题,这也是你的问题吗?
如果是这样试试
rails s -b 0.0.0.0
3.3 Default Host for rails server Due to a change in Rack, rails server now listens on localhost instead of 0.0.0.0 by default. This
should have minimal impact on the standard development workflow as
both http://127.0.0.1:3000 and http://localhost:3000 will continue to
work as before on your own machine.
However, with this change you will no longer be able to access the
Rails server from a different machine, for example if your development
environment is in a virtual machine and you would like to access it
from the host machine. In such cases, please start the server with
rails server -b 0.0.0.0 to restore the old behavior.
If you do this, be sure to configure your firewall properly such that
only trusted machines on your network can access your development
server.
有关详细信息,请参阅发行说明 here。
我没能找到以前回答过的问题,除非我遗漏了一个。无论如何,当我尝试启动 rails 服务器时:
vagrant [accounts]> rails s
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-06-06 02:38:50] INFO WEBrick 1.3.1
[2015-06-06 02:38:50] INFO ruby 2.2.2 (2015-04-13) [i686-linux]
[2015-06-06 02:38:50] INFO WEBrick::HTTPServer#start: pid=23016 port=3000
但这就是我所得到的,没有错误消息或任何东西。当然 localhost:3000 会产生 'no data received'
如您所见,我使用的是 Ruby 2.2.2 和 Rails 4.2.1 我在该应用程序的根目录中,已尝试更新 bin。 我正在使用 sqlite3 gem,我已经创建并迁移了数据库。 我确信它与这个特定的 rails 应用程序无关,因为我已经返回并尝试打开现在遇到相同问题的旧项目。最近我在我的虚拟机上从 Ubuntu 12.04 升级到 14.04。我最近还升级了 ruby(我使用 rvm 进行管理)和 rails。我最近还在 heroku 上放了一些东西。所有这些都与 $PATH 混淆了(我不确定这是否相关,我对所有这些东西都很陌生)。只是想详细说明我能想到的可能会产生影响的所有内容。
谢谢!
我最近运行遇到了以下问题,这也是你的问题吗?
如果是这样试试
rails s -b 0.0.0.0
3.3 Default Host for rails server Due to a change in Rack, rails server now listens on localhost instead of 0.0.0.0 by default. This should have minimal impact on the standard development workflow as both http://127.0.0.1:3000 and http://localhost:3000 will continue to work as before on your own machine.
However, with this change you will no longer be able to access the Rails server from a different machine, for example if your development environment is in a virtual machine and you would like to access it from the host machine. In such cases, please start the server with rails server -b 0.0.0.0 to restore the old behavior.
If you do this, be sure to configure your firewall properly such that only trusted machines on your network can access your development server.
有关详细信息,请参阅发行说明 here。