【问题标题】:How do I solve proxy error with React on rails如何使用 React on rails 解决代理错误
【发布时间】:2018-03-19 10:13:12
【问题描述】:

我正在试用这个包:https://github.com/shakacode/react-webpack-rails-tutorial 按照说明设置热重载。

当使用foreman start -f Procfile.hot 运行项目并刷新网页时,我在 js 包上收到 504 错误。在控制台中我得到这个:

[HPM] Error occurred while trying to proxy request /webpack/vendor-bundle-310d7ea8b116074b3610.js from localhost:3035 to http://lvh.me:3035 (ENFILE) (https://nodejs.org/api/errors.html#errors_common_system_errors)

我不确定是项目的哪个部分导致了这个问题,我该如何解决?

【问题讨论】:

    标签: ruby-on-rails reactjs webpack react-on-rails


    【解决方案1】:

    您的错误是:ENFILE Too many open files in system (POSIX.1-2001). On Linux, this is probably a result of encountering the proc/sys/fs/file-max limit (see proc(5)).

    这是系统错误,不是教程项目本身引起的。如果您同时打开了许多应用程序,则关闭其中一些可能会解决此错误。

    【讨论】:

      猜你喜欢
      • 2022-08-17
      • 1970-01-01
      • 2022-01-17
      • 2021-05-27
      • 1970-01-01
      • 2012-07-03
      • 1970-01-01
      • 2016-11-29
      • 1970-01-01
      相关资源
      最近更新 更多