How to build task 'assets:precompile'

后端 未结 5 2014
不知归路
不知归路 2020-12-25 11:00

I\'m getting that error on my production server, and can\'t figure out why. It happens when running this command:

bundle exec rake assets:precompile RAILS_EN         


        
5条回答
  •  旧时难觅i
    2020-12-25 12:01

    This is most likely due your config/application.rb not requiring rails/all (the default), but some custom requires.

    To resolve this, add the following to config/application.rb:

    require 'sprockets/railtie'
    

提交回复
热议问题