Rake assets:precompile issue. Invalid UTF-8 byte sequence

后端 未结 3 1537
情深已故
情深已故 2021-01-12 00:31

Rails 3.1. I\'m trying to precompile assets.

$ rake assets:precompile RAILS_ENV=production
  rake aborted!
  /home/user/project/public/assets/jquery-ui.min-0         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 00:46

    https://github.com/sstephenson/sprockets/issues/219

    config.assets.precompile = %w( files )
    

    instead of

    config.assets.precompile += %w( files )
    

    or

    config.assets.precompile << %w( files )
    

提交回复
热议问题