ruby-on-rails-3 – 耙资产:预编译问题.无效的UTF-8字节序列

前端之家收集整理的这篇文章主要介绍了ruby-on-rails-3 – 耙资产:预编译问题.无效的UTF-8字节序列前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Rails 3.1.我试图预编译资产.
$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 )
原文链接:https://www.f2er.com/ruby/265538.html

猜你在找的Ruby相关文章