How to build task 'assets:precompile'

后端 未结 5 2006
不知归路
不知归路 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条回答
  •  长发绾君心
    2020-12-25 12:01

    That's strange. You could always try adding

    load "sprockets/assets.rake"
    

    to your Rakefile. It should be included by the actionpack railtie.

    My Rakefile contains:

    require File.expand_path('../config/application', __FILE__)
    Qnm::Application.load_tasks
    

提交回复
热议问题