0.0.2 • Published 9 years ago

ember-deploy-alioss v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Ember Deploy Alioss

Build Status Code Climate

This is the alioss-adapter implementation to use 阿里云对象存储 aliyun oss with ember-deploy.

Installation

You also need dependencies ember-deploy and an index adapter such as ember-deploy-redis or ember-deploy-s3-index, etc.

ember install ember-deploy-alisso

Aliyun OSS Policy Requirements

Make sure to enable your bucket's ACL to public read.

Setup

In deploy.js, set environment as

// ...
assets: {
  type: 'alioss',
  bucket: '<your-bucket-name>',
  accessKeyId: process.env.ALIOSS_KEY,
  secretAccessKey: process.env.ALIOSS_SECRET,
}

Add fingerprint prepend in ember-cli-build.js

// ...
module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    fingerprint: {
      prepend: '//<your-bucket-name>.oss-cn-hangzhou.aliyuncs.com/'
    }
  });
  return app.toTree();
};

Contributing

PRs welcome!