Tag: ruby on rail载

howto:载波的基本设置

我有一个用于生产和开发的S3桶。 我已完成我的研究并遇到了这篇文章,但我当前的配置无法按预期工作。 我在本地获得以下exception(下面),我从我的heroku应用程序中没有上传到我的S3存储桶的文件: is not a recognized storage provider Extracted source (around line #3): 1: 2: 3: 4: 5: 6: 但是,当我在*_uploader.rb文件中设置storage :file ,一切都按预期在本地工作。 但仍然注意到有人被送到我的S3桶。 这是我的设置: user.rb class User < ActiveRecord::Base attr_accessible :name, :avatar, :avatar_cache, :remote_avatar_url, :remove_avatar mount_uploader :avatar, AvatarUploader end fog.rb CarrierWave.configure do |config| if Rails.env.production? config.storage = :fog config.fog_credentials = { :provider => ‘AWS’, […]