在我的服务器上,我上周控制台工作正常.现在我跑的时候
rails console RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)
我收到以下错误.
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test environment)
* production - set it to true
Run Code Online (Sandbox Code Playgroud)
在我的production.rb中,我有以下几行:
config.eager_load = true
Run Code Online (Sandbox Code Playgroud)
开发环境中的rails控制台确实在我的服务器上运行
| 归档时间: |
|
| 查看次数: |
5447 次 |
| 最近记录: |