我创建了一个非常基本的Rails应用程序,没有这样的数据库:
rails new src -O
cd src
rails generate controller Welcome index
本地应用程序正常运行,但是当我运行时
bundle exec rake RAILS_ENV=production --trace
我有这个错误
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
Abort testing: Your Rails environment is running in production mode!
我不知道出了什么问题......
更新:
最后我将线路更改为有效: bundle exec rake RAILS_ENV = production --trace assets:precompile