ruby-on-rails - 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
我仍然收到上述错误。
解决方案
推荐阅读
- python - 是否可以在 Web 应用程序的 1 个后端使用 2 个不同的框架?
- grails - Grails 数据服务无法使用常规服务
- python - 如何将“DataFrame.columns”和“Series.name”合二为一?
- python - 数据框行到 numpy 数组中
- c++ - 如何将模板专业化“列入白名单”?
- javascript - 添加 v-on:click 通过 jquery 单击触发器后不会触发 Vuejs 方法
- r - 在R中的嵌套函数中合并函数的输出
- arrays - 根据逻辑替换数组中的特定值
- mongodb - 如何查找 MongoDB 集群中的操作总数?
- django - 如何在 django 中使用 default_storage 类下载文件