首页 > 解决方案 > config.eager_load 设置为零。请相应地更新您的 config/environments/*.rb 文件:

问题描述

尝试运行 -- rails db migrate 时,我得到:config.eager_load 设置为 nil。请相应地更新您的 config/environments/*.rb 文件:

我在这里看到了类似的错误帖子(Getting config.eager_load is set to nil while trying to run rails c in test )并尝试按照作者的建议运行以下内容:

C:\Users\Royal and Carla\Desktop\TBPt1>SET RAILS_ENV=development
C:\Users\Royal and Carla\Desktop\TBPt1>SET RAILS_ENV=production
C:\Users\Royal and Carla\Desktop\TBPt1>SET RAILS_ENV=test

我仍然收到上述错误。

标签: ruby-on-rails

解决方案


推荐阅读