Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
阿里云 OSS Ruby 上传组件,基于 Carrierwave
branch: master

This branch is 50 commits behind huacnlee:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Update test.
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
carrierwave-aliyun.gemspec

README.md

CarrierWave for Aliyun OSS

This gem adds support for Aliyun OSS to CarrierWave

Installation

gem install carrierwave-aliyun

Using Bundler

gem 'rest-client'
gem 'carrierwave-aliyun'

Configuration

You'll need to configure the to use this in config/initializes/carrierwave.rb

CarrierWave.configure do |config|
  config.storage = :aliyun
  config.aliyun_access_id = "xxxxxx"
  config.aliyun_access_key = 'xxxxxx'
  # you need create this bucket first!
  config.aliyun_bucket = "simple"
end
Something went wrong with that request. Please try again.