耙资产:预编译问题.无效的 UTF-8 字节序列 [英] Rake assets:precompile issue. Invalid UTF-8 byte sequence
本文介绍了耙资产:预编译问题.无效的 UTF-8 字节序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Rails 3.1.我正在尝试预编译资产.
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-0e8a11c7e970b57b4bf5c449cb14480d.js.gz has a invalid UTF-8 byte sequence
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
有什么想法吗?
推荐答案
https://github.com/sstephenson/sprockets/issues/219
config.assets.precompile = %w( files )
代替
config.assets.precompile += %w( files )
或
config.assets.precompile << %w( files )
这篇关于耙资产:预编译问题.无效的 UTF-8 字节序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文