Gem 这是 CarrierWave 的 bug 还是又拍云的问题?

iwinux · March 27, 2012 · Last by iwinux replied at March 27, 2012 · 3003 hits
  1. 本机,32 位 Arch Linux,Ruby 1.9.3-p0, Rails 3.1.4, CarrierWave 0.5.8,carrierwave-upyun 0.1.5
  2. 服务器,64 位 Ubuntu 10.04,Ruby 环境同上

问题描述:

  • 在本机执行 photo.image.cache_stored_file!,会将又拍云服务器上的图片文件取回到 RAILS_ROOT/uploads/tmp/xxx/xxx.jpg,文件格式是 jpg

  • 在服务器上执行同一个命令,取回的文件居然是 gzip 格式的……

完全搞不懂,为什么会出现不一致的结果?难道是操作系统的问题?CarrierWave 的 bug?又拍云的 bug?

应该是 carrierwave-upyun 的 bug

#1 楼 @huacnlee 可是我在本地测试的时候没有问题(development 和 production 环境都测试过),本地跟服务器的环境应该只有操作系统不同……

You need to Sign in before reply, if you don't have an account, please Sign up first.